From: Markus Elfring <Markus.Elfring@web.de>
To: Chao Yu <chao@kernel.org>,
linux-f2fs-devel@lists.sourceforge.net,
Jaegeuk Kim <jaegeuk@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>, Jens Axboe <axboe@kernel.dk>,
Qi Han <hanqi@vivo.com>
Subject: Re: [PATCH v?] f2fs: fix to return -EOPNOTSUPP for uncached write
Date: Tue, 5 Aug 2025 11:16:38 +0200 [thread overview]
Message-ID: <d60910fc-a327-4ebc-ac24-42a668ac1402@web.de> (raw)
In-Reply-To: <20250805061733.3067254-1-chao@kernel.org>
> f2fs doesn't support uncached write yet, for write() w/ IOCB_DONTCACHE
> flag, let's return -EOPNOTSUPP instead of ignoring IOCB_DONTCACHE flag
> and write w/o uncached IO.
See also once more:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.16#n94
…
> ---
> v2:
…
Should a corresponding information appear in the patch subject?
…
> +++ b/fs/f2fs/file.c
> @@ -5185,6 +5185,11 @@ static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
> goto out;
> }
>
> + if (iocb->ki_flags & IOCB_DONTCACHE) {
> + ret = -EOPNOTSUPP;
> + goto out;
> + }
> +
> if (!f2fs_is_compress_backend_ready(inode)) {
> ret = -EOPNOTSUPP;
> goto out;
Can it be avoided to specify duplicate exception handling?
May the condition checks be merged for these if statements?
Regards,
Markus
prev parent reply other threads:[~2025-08-05 9:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-05 6:17 [PATCH] f2fs: fix to return -EOPNOTSUPP for uncached write Chao Yu
2025-08-05 9:16 ` Markus Elfring [this message]
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=d60910fc-a327-4ebc-ac24-42a668ac1402@web.de \
--to=markus.elfring@web.de \
--cc=axboe@kernel.dk \
--cc=chao@kernel.org \
--cc=hanqi@vivo.com \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/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