diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-22 18:23:17 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-22 23:14:41 -0400 |
commit | 77478715ba9242017976fd01de189e77fa072f51 (patch) | |
tree | 0ac00648dd56ef09a4f7c1bf741a1004f9b61f02 /net | |
parent | 8dcf932d541487307fc7388ebfad5955f5fae098 (diff) | |
download | linux-77478715ba9242017976fd01de189e77fa072f51.tar.bz2 |
ceph: use get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net')
-rw-r--r-- | net/ceph/pagevec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ceph/pagevec.c b/net/ceph/pagevec.c index 1a7c9a79a53c..4098b17d0812 100644 --- a/net/ceph/pagevec.c +++ b/net/ceph/pagevec.c @@ -24,9 +24,9 @@ struct page **ceph_get_direct_page_vector(const void __user *data, return ERR_PTR(-ENOMEM); while (got < num_pages) { - rc = get_user_pages_unlocked( + rc = get_user_pages_fast( (unsigned long)data + ((unsigned long)got * PAGE_SIZE), - num_pages - got, pages + got, write_page ? FOLL_WRITE : 0); + num_pages - got, write_page, pages + got); if (rc < 0) break; BUG_ON(rc == 0); |