[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d981dea1-9851-6511-d101-22ea8d7fd31e@oracle.com>
Date: Wed, 4 Oct 2023 10:14:26 +0100
From: John Garry <john.g.garry@...cle.com>
To: Bart Van Assche <bvanassche@....org>, axboe@...nel.dk,
kbusch@...nel.org, hch@....de, sagi@...mberg.me,
jejb@...ux.ibm.com, martin.petersen@...cle.com, djwong@...nel.org,
viro@...iv.linux.org.uk, brauner@...nel.org,
chandan.babu@...cle.com, dchinner@...hat.com
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-nvme@...ts.infradead.org, linux-xfs@...r.kernel.org,
linux-fsdevel@...r.kernel.org, tytso@....edu, jbongio@...gle.com,
linux-api@...r.kernel.org
Subject: Re: [PATCH 10/21] block: Add fops atomic write support
On 03/10/2023 17:45, Bart Van Assche wrote:
> On 10/3/23 01:37, John Garry wrote:
>> I don't think that is_power_of_2(write length) is specific to XFS.
>
> I think this is specific to XFS. Can you show me the F2FS code that
> restricts the length of an atomic write to a power of two? I haven't
> found it. The only power-of-two check that I found in F2FS is the
> following (maybe I overlooked something):
>
> $ git grep -nH is_power fs/f2fs
> fs/f2fs/super.c:3914: if (!is_power_of_2(zone_sectors)) {
Any usecases which we know of requires a power-of-2 block size.
Do you know of a requirement for other sizes? Or are you concerned that
it is unnecessarily restrictive?
We have to deal with HW features like atomic write boundary and FS
restrictions like extent and stripe alignment transparent, which are
almost always powers-of-2, so naturally we would want to work with
powers-of-2 for atomic write sizes.
The power-of-2 stuff could be dropped if that is what people want.
However we still want to provide a set of rules to the user to make
those HW and FS features mentioned transparent to the user.
Thanks,
John
Powered by blists - more mailing lists