diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-06-13 11:27:05 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-06-25 10:49:31 +0200 |
commit | 687265e5a885d6308f5d73e738efe3c2674fa218 (patch) | |
tree | 65f9c44df4ed4c391b7f7f67d5f7643b703e8d47 /fs/ceph/mds_client.c | |
parent | ceph: pre-allocate data structure that tracks caps flushing (diff) | |
download | linux-687265e5a885d6308f5d73e738efe3c2674fa218.tar.xz linux-687265e5a885d6308f5d73e738efe3c2674fa218.zip |
ceph: switch some GFP_NOFS memory allocation to GFP_KERNEL
GFP_NOFS memory allocation is required for page writeback path.
But there is no need to use GFP_NOFS in syscall path and readpage
path
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r-- | fs/ceph/mds_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 8d73fe9d488b..6aa07af67603 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -1668,7 +1668,8 @@ int ceph_alloc_readdir_reply_buffer(struct ceph_mds_request *req, order = get_order(size * num_entries); while (order >= 0) { - rinfo->dir_in = (void*)__get_free_pages(GFP_NOFS | __GFP_NOWARN, + rinfo->dir_in = (void*)__get_free_pages(GFP_KERNEL | + __GFP_NOWARN, order); if (rinfo->dir_in) break; |