diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-05-24 01:25:42 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-07-14 01:23:53 -0400 |
commit | 3260f78ad6d5b788e78ea709d377f58e569bee41 (patch) | |
tree | 9ba46ac087769061b0cc3f0fec67be863c4a28b7 /fs/xfs/linux-2.6/xfs_buf.c | |
parent | 92dfe8d266eaf35a50607a0e0dcf525e1d367c80 (diff) |
[XFS] Use generic shrinker interfaces in XFS.
SGI-PV: 964986
SGI-Modid: xfs-linux-melb:xfs-kern:28642a
Signed-Off-By: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_buf.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c index 192aa0650919..a3eff54a201c 100644 --- a/fs/xfs/linux-2.6/xfs_buf.c +++ b/fs/xfs/linux-2.6/xfs_buf.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include <linux/freezer.h> | 35 | #include <linux/freezer.h> |
36 | 36 | ||
37 | static kmem_zone_t *xfs_buf_zone; | 37 | static kmem_zone_t *xfs_buf_zone; |
38 | static kmem_shaker_t xfs_buf_shake; | 38 | static struct shrinker *xfs_buf_shake; |
39 | STATIC int xfsbufd(void *); | 39 | STATIC int xfsbufd(void *); |
40 | STATIC int xfsbufd_wakeup(int, gfp_t); | 40 | STATIC int xfsbufd_wakeup(int, gfp_t); |
41 | STATIC void xfs_buf_delwri_queue(xfs_buf_t *, int); | 41 | STATIC void xfs_buf_delwri_queue(xfs_buf_t *, int); |
@@ -1831,7 +1831,7 @@ xfs_buf_init(void) | |||
1831 | if (!xfsdatad_workqueue) | 1831 | if (!xfsdatad_workqueue) |
1832 | goto out_destroy_xfslogd_workqueue; | 1832 | goto out_destroy_xfslogd_workqueue; |
1833 | 1833 | ||
1834 | xfs_buf_shake = kmem_shake_register(xfsbufd_wakeup); | 1834 | xfs_buf_shake = set_shrinker(DEFAULT_SEEKS, xfsbufd_wakeup); |
1835 | if (!xfs_buf_shake) | 1835 | if (!xfs_buf_shake) |
1836 | goto out_destroy_xfsdatad_workqueue; | 1836 | goto out_destroy_xfsdatad_workqueue; |
1837 | 1837 | ||
@@ -1853,7 +1853,7 @@ xfs_buf_init(void) | |||
1853 | void | 1853 | void |
1854 | xfs_buf_terminate(void) | 1854 | xfs_buf_terminate(void) |
1855 | { | 1855 | { |
1856 | kmem_shake_deregister(xfs_buf_shake); | 1856 | remove_shrinker(xfs_buf_shake); |
1857 | destroy_workqueue(xfsdatad_workqueue); | 1857 | destroy_workqueue(xfsdatad_workqueue); |
1858 | destroy_workqueue(xfslogd_workqueue); | 1858 | destroy_workqueue(xfslogd_workqueue); |
1859 | kmem_zone_destroy(xfs_buf_zone); | 1859 | kmem_zone_destroy(xfs_buf_zone); |