aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2010-07-20 08:07:02 +1000
committerDave Chinner <david@fromorbit.com>2010-07-20 08:07:02 +1000
commit70e60ce71516c3a9e882edb70a09f696a05961db (patch)
tree324a400f2d21d071f6c462edbb6efa789125f6f1 /fs/xfs/xfs_mount.h
parent7f8275d0d660c146de6ee3017e1e2e594c49e820 (diff)
downloadkernel_samsung_smdk4412-70e60ce71516c3a9e882edb70a09f696a05961db.zip
kernel_samsung_smdk4412-70e60ce71516c3a9e882edb70a09f696a05961db.tar.gz
kernel_samsung_smdk4412-70e60ce71516c3a9e882edb70a09f696a05961db.tar.bz2
xfs: convert inode shrinker to per-filesystem contexts
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@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r--fs/xfs/xfs_mount.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h
index 1d2c7ee..5761087 100644
--- a/fs/xfs/xfs_mount.h
+++ b/fs/xfs/xfs_mount.h
@@ -259,7 +259,7 @@ typedef struct xfs_mount {
wait_queue_head_t m_wait_single_sync_task;
__int64_t m_update_flags; /* sb flags we need to update
on the next remount,rw */
- struct list_head m_mplist; /* inode shrinker mount list */
+ struct shrinker m_inode_shrink; /* inode reclaim shrinker */
} xfs_mount_t;
/*