| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 2/3] xfs: convert inode shrinker to per-filesystem contexts |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Thu, 15 Jul 2010 14:10:25 -0400 |
| Cc: | xfs@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx |
| In-reply-to: | <1279194418-16119-3-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1279194418-16119-1-git-send-email-david@xxxxxxxxxxxxx> <1279194418-16119-3-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.20 (2009-08-17) |
On Thu, Jul 15, 2010 at 09:46:57PM +1000, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > Now the shrinker passes us a context, wire up a shrinker context per > filesystem. This allows us to remove the global mount list and the > locking problems that introduced. It also means that a shrinker call > does not need to traverse clean filesystems before finding a > filesystem with reclaimable inodes. This significantly reduces > scanning overhead when lots of filesystems are present. > > Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx> > --- > fs/xfs/linux-2.6/xfs_super.c | 2 - > fs/xfs/linux-2.6/xfs_sync.c | 62 +++++++++-------------------------------- > fs/xfs/linux-2.6/xfs_sync.h | 2 - > fs/xfs/xfs_mount.h | 2 +- > 4 files changed, 15 insertions(+), 53 deletions(-) And makes the code a lot simpler and more obvious. Reviewed-by: Christoph Hellwig <hch@xxxxxx> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 4/5] xfs: use GFP_NOFS for page cache allocation, Alex Elder |
|---|---|
| Next by Date: | Re: [PATCH 3/3] xfs: track AGs with reclaimable inodes in per-ag radix tree, Christoph Hellwig |
| Previous by Thread: | [PATCH 2/3] xfs: convert inode shrinker to per-filesystem contexts, Dave Chinner |
| Next by Thread: | Re: [PATCH 2/3] xfs: convert inode shrinker to per-filesystem contexts, Alex Elder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |