aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/xattr.c
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2010-03-17 16:54:02 -0400
committerSage Weil <sage@newdream.net>2010-05-17 18:25:12 -0400
commit31459fe4b24c1e09712eff0d82a5276f4fd0e3cf (patch)
treeb5f7b4c1bac0eb93cef51443373909eb91c43cc4 /fs/ceph/xattr.c
parentf553069e5d7c6f53688ae4470173fcb1be97cbe7 (diff)
ceph: use __page_cache_alloc and add_to_page_cache_lru
Following Nick Piggin patches in btrfs, pagecache pages should be allocated with __page_cache_alloc, so they obey pagecache memory policies. Also, using add_to_page_cache_lru instead of using a private pagevec where applicable. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/xattr.c')
-rw-r--r--fs/ceph/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c
index 2845422907fc..8938934c4c93 100644
--- a/fs/ceph/xattr.c
+++ b/fs/ceph/xattr.c
@@ -641,7 +641,7 @@ static int ceph_sync_setxattr(struct dentry *dentry, const char *name,
641 return -ENOMEM; 641 return -ENOMEM;
642 err = -ENOMEM; 642 err = -ENOMEM;
643 for (i = 0; i < nr_pages; i++) { 643 for (i = 0; i < nr_pages; i++) {
644 pages[i] = alloc_page(GFP_NOFS); 644 pages[i] = __page_cache_alloc(GFP_NOFS);
645 if (!pages[i]) { 645 if (!pages[i]) {
646 nr_pages = i; 646 nr_pages = i;
647 goto out; 647 goto out;