From: Jeff Layton Date: Tue, 10 Nov 2020 21:24:40 +0000 (-0500) Subject: ceph: pass down the flags to grab_cache_page_write_begin X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4a357f5069428afc7c48cb4bdc95c864b7a5c862;p=linux.git 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 Reviewed-by: Ilya Dryomov Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index e10b07edc95c6..9505529444362 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;