Skip to content

XFS: replace the mount inode list with radix tree traversals

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4XFS: Remove xfs_iflush_all and clean up xfs_finish_reclaim_all()fs/xfs/xfs_inode.c fs/xfs/xfs_inode.h fs/xfs/xfs_mount.c +2 more+23 -713 replies
2/4XFS: Use the inode tree for finding dirty inodesfs/xfs/xfs_vfsops.c+99 -25919 replies
3/4XFS: Traverse inode trees when releasing dquotsfs/xfs/quota/xfs_qm_syscalls.c+53 -670 replies
4/4XFS: remove the mount inode listfs/xfs/xfs_iget.c fs/xfs/xfs_inode.h fs/xfs/xfs_mount.c +1 more+1 -552 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] XFS: replace the mount inode list with radix tree traversals

The list of all inodes on a mount is superfluous. We can traverse all inodes now by walking the per-AG inode radix trees without needing a separate list. This enables us to remove a bunch of complex list traversal code and remove another two pointers from the xfs_inode.

Also, by replacing the sync traversal with an ascending inode number traversal, we will issue better inode I/O patterns for writeback triggered by xfssyncd or unmount.

Diffstat for the change:

 xfs/quota/xfs_qm_syscalls.c |  120 ++++++--------
 xfs/xfs_iget.c              |   42 -----
 xfs/xfs_inode.c             |   39 ----
 xfs/xfs_inode.h             |   11 -
 xfs/xfs_mount.c             |    7
 xfs/xfs_mount.h             |    1
 xfs/xfs_vfsops.c            |  366 ++++++++++++--------------------------------
 xfs/xfs_vnodeops.c          |   42 ++---
 8 files changed, 176 insertions(+), 452 deletions(-)