aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorNaohiro Aota <naohiro.aota@wdc.com>2021-02-04 19:21:53 +0900
committerDavid Sterba <dsterba@suse.com>2021-02-09 02:46:03 +0100
commit2eda57089ea31942e067d6ac37923c3154ef8a25 (patch)
tree126698103de2e399810be8757cf0409e47696646 /fs/btrfs/transaction.c
parentbtrfs: zoned: track unusable bytes for zones (diff)
downloadlinux-dev-2eda57089ea31942e067d6ac37923c3154ef8a25.tar.xz
linux-dev-2eda57089ea31942e067d6ac37923c3154ef8a25.zip
btrfs: zoned: implement sequential extent allocation
Implement a sequential extent allocator for zoned filesystems. This allocator only needs to check if there is enough space in the block group after the allocation pointer to satisfy the extent allocation request. Therefore the allocator never manages bitmaps or clusters. Also, add assertions to the corresponding functions. As zone append writing is used, it would be unnecessary to track the allocation offset, as the allocator only needs to check available space. But by tracking and returning the offset as an allocated region, we can skip modification of ordered extents and checksum information when there is no IO reordering. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
0 files changed, 0 insertions, 0 deletions