diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2010-03-17 16:54:02 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-05-17 18:25:12 -0400 |
commit | 31459fe4b24c1e09712eff0d82a5276f4fd0e3cf (patch) | |
tree | b5f7b4c1bac0eb93cef51443373909eb91c43cc4 /fs/ceph/messenger.c | |
parent | f553069e5d7c6f53688ae4470173fcb1be97cbe7 (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/messenger.c')
-rw-r--r-- | fs/ceph/messenger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/messenger.c b/fs/ceph/messenger.c index cd4fadb6491a..af3b143fbf02 100644 --- a/fs/ceph/messenger.c +++ b/fs/ceph/messenger.c | |||
@@ -1947,7 +1947,7 @@ struct ceph_messenger *ceph_messenger_create(struct ceph_entity_addr *myaddr) | |||
1947 | 1947 | ||
1948 | /* the zero page is needed if a request is "canceled" while the message | 1948 | /* the zero page is needed if a request is "canceled" while the message |
1949 | * is being written over the socket */ | 1949 | * is being written over the socket */ |
1950 | msgr->zero_page = alloc_page(GFP_KERNEL | __GFP_ZERO); | 1950 | msgr->zero_page = __page_cache_alloc(GFP_KERNEL | __GFP_ZERO); |
1951 | if (!msgr->zero_page) { | 1951 | if (!msgr->zero_page) { |
1952 | kfree(msgr); | 1952 | kfree(msgr); |
1953 | return ERR_PTR(-ENOMEM); | 1953 | return ERR_PTR(-ENOMEM); |