Skip to content

Commit

Permalink
xfs: introduce a per-ag inode iterator
Browse files Browse the repository at this point in the history
Given that we walk across the per-ag inode lists so often, it makes sense to
introduce an iterator for this.

Convert the sync and reclaim code to use this new iterator, quota code will
follow in the next patch.

Also change xfs_reclaim_inode to return -EGAIN instead of 1 for an inode
already under reclaim.  This simplifies the AG iterator and doesn't
matter for the only other caller.

[hch: merged the lookup and execute callbacks back into one to get the
 pag_ici_lock locking correct and simplify the code flow]

Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
  • Loading branch information
Dave Chinner authored and Christoph Hellwig committed Jun 8, 2009
1 parent abc1064 commit 75f3cb1
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 166 deletions.
Loading

0 comments on commit 75f3cb1

Please sign in to comment.