-
- Downloads
xfs: use generic percpu counters for free inode counter
XFS has hand-rolled per-cpu counters for the superblock since before there was any generic implementation. The free inode counter is not used for any limit enforcement - the per-AG free inode counters are used during allocation to determine if there are inode available for allocation. Hence we don't need any of the complexity of the hand-rolled counters and we can simply replace them with generic per-cpu counters similar to the inode counter. This version introduces a xfs_mod_ifree() helper function from Christoph Hellwig. Signed-off-by:Dave Chinner <dchinner@redhat.com> Reviewed-by:
Brian Foster <bfoster@redhat.com> Signed-off-by:
Dave Chinner <david@fromorbit.com>
Showing
- fs/xfs/libxfs/xfs_sb.c 1 addition, 0 deletionsfs/xfs/libxfs/xfs_sb.c
- fs/xfs/xfs_fsops.c 1 addition, 1 deletionfs/xfs/xfs_fsops.c
- fs/xfs/xfs_mount.c 33 additions, 43 deletionsfs/xfs/xfs_mount.c
- fs/xfs/xfs_mount.h 2 additions, 0 deletionsfs/xfs/xfs_mount.h
- fs/xfs/xfs_super.c 3 additions, 1 deletionfs/xfs/xfs_super.c
- fs/xfs/xfs_trans.c 2 additions, 3 deletionsfs/xfs/xfs_trans.c
Loading
Please register or sign in to comment