aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-03-22 22:52:47 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-03-22 22:52:47 -0400
commitaab008db8063364dc3c8ccf4981c21124866b395 (patch)
tree72914203f4decb023efdaabd0301a62d742dfa8c /drivers
parent4f5b1affdda3e0c48cac674182f52004137b0ffc (diff)
parent16c0cfa425b8e1488f7a1873bd112a7a099325f0 (diff)
Merge tag 'stable/for-linus-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/mm
Pull cleancache changes from Konrad Rzeszutek Wilk: "This has some patches for the cleancache API that should have been submitted a _long_ time ago. They are basically cleanups: - rename of flush to invalidate - moving reporting of statistics into debugfs - use __read_mostly as necessary. Oh, and also the MAINTAINERS file change. The files (except the MAINTAINERS file) have been in #linux-next for months now. The late addition of MAINTAINERS file is a brain-fart on my side - didn't realize I needed that just until I was typing this up - and I based that patch on v3.3 - so the tree is on top of v3.3." * tag 'stable/for-linus-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/mm: MAINTAINERS: Adding cleancache API to the list. mm: cleancache: Use __read_mostly as appropiate. mm: cleancache: report statistics via debugfs instead of sysfs. mm: zcache/tmem/cleancache: s/flush/invalidate/ mm: cleancache: s/flush/invalidate/
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/zcache/zcache-main.c10
-rw-r--r--drivers/xen/tmem.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c
index ed2c800b3a7e..2734dacacbaf 100644
--- a/drivers/staging/zcache/zcache-main.c
+++ b/drivers/staging/zcache/zcache-main.c
@@ -1811,9 +1811,9 @@ static int zcache_cleancache_init_shared_fs(char *uuid, size_t pagesize)
1811static struct cleancache_ops zcache_cleancache_ops = { 1811static struct cleancache_ops zcache_cleancache_ops = {
1812 .put_page = zcache_cleancache_put_page, 1812 .put_page = zcache_cleancache_put_page,
1813 .get_page = zcache_cleancache_get_page, 1813 .get_page = zcache_cleancache_get_page,
1814 .flush_page = zcache_cleancache_flush_page, 1814 .invalidate_page = zcache_cleancache_flush_page,
1815 .flush_inode = zcache_cleancache_flush_inode, 1815 .invalidate_inode = zcache_cleancache_flush_inode,
1816 .flush_fs = zcache_cleancache_flush_fs, 1816 .invalidate_fs = zcache_cleancache_flush_fs,
1817 .init_shared_fs = zcache_cleancache_init_shared_fs, 1817 .init_shared_fs = zcache_cleancache_init_shared_fs,
1818 .init_fs = zcache_cleancache_init_fs 1818 .init_fs = zcache_cleancache_init_fs
1819}; 1819};
@@ -1921,8 +1921,8 @@ static void zcache_frontswap_init(unsigned ignored)
1921static struct frontswap_ops zcache_frontswap_ops = { 1921static struct frontswap_ops zcache_frontswap_ops = {
1922 .put_page = zcache_frontswap_put_page, 1922 .put_page = zcache_frontswap_put_page,
1923 .get_page = zcache_frontswap_get_page, 1923 .get_page = zcache_frontswap_get_page,
1924 .flush_page = zcache_frontswap_flush_page, 1924 .invalidate_page = zcache_frontswap_flush_page,
1925 .flush_area = zcache_frontswap_flush_area, 1925 .invalidate_area = zcache_frontswap_flush_area,
1926 .init = zcache_frontswap_init 1926 .init = zcache_frontswap_init
1927}; 1927};
1928 1928
diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c
index d369965e8f8a..17d9e37beba4 100644
--- a/drivers/xen/tmem.c
+++ b/drivers/xen/tmem.c
@@ -242,9 +242,9 @@ __setup("nocleancache", no_cleancache);
242static struct cleancache_ops tmem_cleancache_ops = { 242static struct cleancache_ops tmem_cleancache_ops = {
243 .put_page = tmem_cleancache_put_page, 243 .put_page = tmem_cleancache_put_page,
244 .get_page = tmem_cleancache_get_page, 244 .get_page = tmem_cleancache_get_page,
245 .flush_page = tmem_cleancache_flush_page, 245 .invalidate_page = tmem_cleancache_flush_page,
246 .flush_inode = tmem_cleancache_flush_inode, 246 .invalidate_inode = tmem_cleancache_flush_inode,
247 .flush_fs = tmem_cleancache_flush_fs, 247 .invalidate_fs = tmem_cleancache_flush_fs,
248 .init_shared_fs = tmem_cleancache_init_shared_fs, 248 .init_shared_fs = tmem_cleancache_init_shared_fs,
249 .init_fs = tmem_cleancache_init_fs 249 .init_fs = tmem_cleancache_init_fs
250}; 250};
@@ -369,8 +369,8 @@ __setup("nofrontswap", no_frontswap);
369static struct frontswap_ops tmem_frontswap_ops = { 369static struct frontswap_ops tmem_frontswap_ops = {
370 .put_page = tmem_frontswap_put_page, 370 .put_page = tmem_frontswap_put_page,
371 .get_page = tmem_frontswap_get_page, 371 .get_page = tmem_frontswap_get_page,
372 .flush_page = tmem_frontswap_flush_page, 372 .invalidate_page = tmem_frontswap_flush_page,
373 .flush_area = tmem_frontswap_flush_area, 373 .invalidate_area = tmem_frontswap_flush_area,
374 .init = tmem_frontswap_init 374 .init = tmem_frontswap_init
375}; 375};
376#endif 376#endif