* [PATCH] ovl: check IOCB_APPEND flag
@ 2022-11-20 3:41 Weizhao Ouyang
2022-11-24 13:03 ` Miklos Szeredi
0 siblings, 1 reply; 2+ messages in thread
From: Weizhao Ouyang @ 2022-11-20 3:41 UTC (permalink / raw)
To: Miklos Szeredi; +Cc: linux-unionfs, linux-kernel, Weizhao Ouyang
Add *_APPEND flag for ovl_iocb_to_rwf().
Signed-off-by: Weizhao Ouyang <o451686892@gmail.com>
---
fs/overlayfs/file.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index a1a22f58ba18..ed286dd0e719 100644
--- a/fs/overlayfs/file.c
+++ b/fs/overlayfs/file.c
@@ -244,6 +244,8 @@ static rwf_t ovl_iocb_to_rwf(int ifl)
{
rwf_t flags = 0;
+ if (ifl & IOCB_APPEND)
+ flags |= RWF_APPEND;
if (ifl & IOCB_NOWAIT)
flags |= RWF_NOWAIT;
if (ifl & IOCB_HIPRI)
--
2.37.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ovl: check IOCB_APPEND flag
2022-11-20 3:41 [PATCH] ovl: check IOCB_APPEND flag Weizhao Ouyang
@ 2022-11-24 13:03 ` Miklos Szeredi
0 siblings, 0 replies; 2+ messages in thread
From: Miklos Szeredi @ 2022-11-24 13:03 UTC (permalink / raw)
To: Weizhao Ouyang; +Cc: linux-unionfs, linux-kernel
On Sun, 20 Nov 2022 at 04:42, Weizhao Ouyang <o451686892@gmail.com> wrote:
>
> Add *_APPEND flag for ovl_iocb_to_rwf().
Why?
Thanks,
Miklos
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-24 13:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-20 3:41 [PATCH] ovl: check IOCB_APPEND flag Weizhao Ouyang
2022-11-24 13:03 ` Miklos Szeredi
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).