summaryrefslogtreecommitdiffstats
path: root/fs/ceph/addr.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2020-11-10 16:24:40 -0500
committerIlya Dryomov <idryomov@gmail.com>2020-12-14 23:21:47 +0100
commit4a357f5069428afc7c48cb4bdc95c864b7a5c862 (patch)
tree49ecff30ece435d4463c4130d666edec9f5a7c4f /fs/ceph/addr.c
parent5a9e2f5d5590fc70514083bd8771ec04de538387 (diff)
downloadlinux-4a357f5069428afc7c48cb4bdc95c864b7a5c862.tar.bz2
ceph: pass down the flags to grab_cache_page_write_begin
write_begin operations are passed a flags parameter that we need to mirror here, so that we don't (e.g.) recurse back into filesystem code inappropriately. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/addr.c')
-rw-r--r--fs/ceph/addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index e10b07edc95c..950552944436 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -1321,7 +1321,7 @@ static int ceph_write_begin(struct file *file, struct address_space *mapping,
dout("write_begin file %p inode %p page %p %d~%d\n", file, inode, page, (int)pos, (int)len);
for (;;) {
- page = grab_cache_page_write_begin(mapping, index, 0);
+ page = grab_cache_page_write_begin(mapping, index, flags);
if (!page) {
r = -ENOMEM;
break;