summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2013-08-27 20:17:57 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-09-10 18:56:30 -0400
commit0a234c6dcb79a270803f5c9773ed650b78730962 (patch)
tree8f93bd04d5c01a32dc78617c04dc770dc4b86883 /include/linux
parent24f7c6b981fb70084757382da464ea85d72af300 (diff)
shrinker: convert superblock shrinkers to new API
Convert superblock shrinker to use the new count/scan API, and propagate the API changes through to the filesystem callouts. The filesystem callouts already use a count/scan API, so it's just changing counters to longs to match the VM API. This requires the dentry and inode shrinker callouts to be converted to the count/scan API. This is mainly a mechanical change. [glommer@openvz.org: use mult_frac for fractional proportions, build fixes] Signed-off-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Glauber Costa <glommer@openvz.org> Acked-by: Mel Gorman <mgorman@suse.de> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Cc: Arve Hjønnevåg <arve@android.com> Cc: Carlos Maiolino <cmaiolino@redhat.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Chuck Lever <chuck.lever@oracle.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: David Rientjes <rientjes@google.com> Cc: Gleb Natapov <gleb@redhat.com> Cc: Greg Thelen <gthelen@google.com> Cc: J. Bruce Fields <bfields@redhat.com> Cc: Jan Kara <jack@suse.cz> Cc: Jerome Glisse <jglisse@redhat.com> Cc: John Stultz <john.stultz@linaro.org> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Kent Overstreet <koverstreet@google.com> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Marcelo Tosatti <mtosatti@redhat.com> Cc: Mel Gorman <mgorman@suse.de> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Thomas Hellstrom <thellstrom@vmware.com> Cc: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 14a90f6886fa..0ae0bc3c1fde 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1335,10 +1335,6 @@ struct super_block {
1335 struct workqueue_struct *s_dio_done_wq; 1335 struct workqueue_struct *s_dio_done_wq;
1336}; 1336};
1337 1337
1338/* superblock cache pruning functions */
1339extern void prune_icache_sb(struct super_block *sb, int nr_to_scan);
1340extern void prune_dcache_sb(struct super_block *sb, int nr_to_scan);
1341
1342extern struct timespec current_fs_time(struct super_block *sb); 1338extern struct timespec current_fs_time(struct super_block *sb);
1343 1339
1344/* 1340/*
@@ -1631,8 +1627,8 @@ struct super_operations {
1631 ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t); 1627 ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t);
1632#endif 1628#endif
1633 int (*bdev_try_to_free_page)(struct super_block*, struct page*, gfp_t); 1629 int (*bdev_try_to_free_page)(struct super_block*, struct page*, gfp_t);
1634 int (*nr_cached_objects)(struct super_block *); 1630 long (*nr_cached_objects)(struct super_block *);
1635 void (*free_cached_objects)(struct super_block *, int); 1631 long (*free_cached_objects)(struct super_block *, long);
1636}; 1632};
1637 1633
1638/* 1634/*