linux-unionfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ovl: remove redundant IOCB_DIO_CALLER_COMP clearing
@ 2025-10-09  5:41 Seong-Gwang Heo
  2025-10-09  9:56 ` Miklos Szeredi
  2025-10-10 12:03 ` Christian Brauner
  0 siblings, 2 replies; 4+ messages in thread
From: Seong-Gwang Heo @ 2025-10-09  5:41 UTC (permalink / raw)
  To: miklos, amir73il; +Cc: linux-unionfs, Seong-Gwang Heo

The backing_file_write_iter() function, which is called
immediately after this code, already contains identical
logic to clear the IOCB_DIO_CALLER_COMP flag along with
the same explanatory comment. There is no need to duplicate
this operation in the overlayfs code.

Signed-off-by: Seong-Gwang Heo <heo@mykernel.net>
---
 fs/overlayfs/file.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index f5b8877d5fe2..31a98f10fc4b 100644
--- a/fs/overlayfs/file.c
+++ b/fs/overlayfs/file.c
@@ -369,11 +369,6 @@ static ssize_t ovl_write_iter(struct kiocb *iocb, struct iov_iter *iter)
 	if (!ovl_should_sync(OVL_FS(inode->i_sb)))
 		ifl &= ~(IOCB_DSYNC | IOCB_SYNC);
 
-	/*
-	 * Overlayfs doesn't support deferred completions, don't copy
-	 * this property in case it is set by the issuer.
-	 */
-	ifl &= ~IOCB_DIO_CALLER_COMP;
 	ret = backing_file_write_iter(realfile, iter, iocb, ifl, &ctx);
 
 out_unlock:
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-10-10 12:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-09  5:41 [PATCH] ovl: remove redundant IOCB_DIO_CALLER_COMP clearing Seong-Gwang Heo
2025-10-09  9:56 ` Miklos Szeredi
2025-10-09 11:59   ` Amir Goldstein
2025-10-10 12:03 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).