mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Weizhao Ouyang <o451686892@gmail.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org,
	Weizhao Ouyang <o451686892@gmail.com>
Subject: [PATCH] ovl: check IOCB_APPEND flag
Date: Sun, 20 Nov 2022 03:41:43 +0000	[thread overview]
Message-ID: <20221120034143.684416-1-o451686892@gmail.com> (raw)

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


             reply	other threads:[~2022-11-20  3:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-20  3:41 Weizhao Ouyang [this message]
2022-11-24 13:03 ` Miklos Szeredi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221120034143.684416-1-o451686892@gmail.com \
    --to=o451686892@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-unionfs@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®