]> Git Repo - linux.git/commit
btrfs: zoned: introduce dedicated data write path for zoned filesystems
authorNaohiro Aota <[email protected]>
Thu, 4 Feb 2021 10:22:07 +0000 (19:22 +0900)
committerDavid Sterba <[email protected]>
Tue, 9 Feb 2021 01:46:06 +0000 (02:46 +0100)
commit42c011000963442ce533d92a492c4a057b2f5a46
tree4410e793a771d657a9395f909427317db4603b9d
parent544d24f9de73642a65d50389b789a957b14ae3f6
btrfs: zoned: introduce dedicated data write path for zoned filesystems

If more than one IO is issued for one file extent, these IO can be
written to separate regions on a device. Since we cannot map one file
extent to such a separate area on a zoned filesystem, we need to follow
the "one IO == one ordered extent" rule.

The normal buffered, uncompressed and not pre-allocated write path (used
by cow_file_range()) sometimes does not follow this rule. It can write a
part of an ordered extent when specified a region to write e.g., when
its called from fdatasync().

Introduce a dedicated (uncompressed buffered) data write path for zoned
filesystems, that will COW the region and write it at once.

Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Naohiro Aota <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
fs/btrfs/inode.c
This page took 0.066156 seconds and 4 git commands to generate.