[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <85074165-4e56-421d-970b-0963da8de0e2@oracle.com>
Date: Thu, 13 Mar 2025 06:28:03 +0000
From: John Garry <john.g.garry@...cle.com>
To: Dave Chinner <david@...morbit.com>, Christoph Hellwig <hch@...radead.org>
Cc: brauner@...nel.org, djwong@...nel.org, cem@...nel.org,
linux-xfs@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org, ojaswin@...ux.ibm.com,
ritesh.list@...il.com, martin.petersen@...cle.com
Subject: Re: [PATCH RFC v5 10/10] iomap: Rename ATOMIC flags again
iomap_dio_bio_iter()
On 12/03/2025 23:59, Dave Chinner wrote:
>>> */
>>> static inline blk_opf_t iomap_dio_bio_opflags(struct iomap_dio *dio,
>>> - const struct iomap *iomap, bool use_fua, bool atomic_hw)
>>> + const struct iomap *iomap, bool use_fua, bool bio_atomic)
>> Not new here, but these two bools are pretty ugly.
>>
>> I'd rather have a
>>
>> blk_opf_t extra_flags;
>>
>> in the caller that gets REQ_FUA and REQ_ATOMIC assigned as needed,
>> and then just clear
> Yep, that is cleaner..
This suggestion is not clear to me.
Is it that iomap_dio_bio_iter() [the only caller of
iomap_dio_bio_opflags()] sets REQ_FUA and REQ_ATOMIC in extra_flags, and
then we extra_flags | bio_opf?
Note that iomap_dio_bio_opflags() does still use use_fua for clearing
IOMAP_DIO_WRITE_THROUGH.
And to me it seems nicer to set all the REQ_ flags in one place.
Powered by blists - more mailing lists