2022-11-20 04:16:37

by Weizhao Ouyang

[permalink] [raw]
Subject: [PATCH] ovl: check IOCB_APPEND flag

Add *_APPEND flag for ovl_iocb_to_rwf().

Signed-off-by: Weizhao Ouyang <[email protected]>
---
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



2022-11-24 13:26:46

by Miklos Szeredi

[permalink] [raw]
Subject: Re: [PATCH] ovl: check IOCB_APPEND flag

On Sun, 20 Nov 2022 at 04:42, Weizhao Ouyang <[email protected]> wrote:
>
> Add *_APPEND flag for ovl_iocb_to_rwf().

Why?

Thanks,
Miklos