CEPH filesystem development
 help / color / mirror / Atom feed
* [PATCH] ceph: pass down the flags to grab_cache_page_write_begin
@ 2020-11-11 12:56 Jeff Layton
  0 siblings, 0 replies; only message in thread
From: Jeff Layton @ 2020-11-11 12:56 UTC (permalink / raw)
  To: ceph-devel

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>
---
 fs/ceph/addr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.28.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-11 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-11 12:56 [PATCH] ceph: pass down the flags to grab_cache_page_write_begin Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox