aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ordered-data.c
diff options
context:
space:
mode:
authorDavid Sterba <[email protected]>2025-06-10 12:17:48 +0000
committerDavid Sterba <[email protected]>2025-07-21 21:58:01 +0000
commite47c8a47670dbb71bbeeb6cd91f6697106acd742 (patch)
tree5aa56b0e11acb1582b65b86ef00f434b49083361 /fs/btrfs/ordered-data.c
parentbtrfs: check BLOCK_GROUP_FLAG_NEEDS_FREE_SPACE at __add_block_group_free_space() (diff)
downloadkernel-e47c8a47670dbb71bbeeb6cd91f6697106acd742.tar.gz
kernel-e47c8a47670dbb71bbeeb6cd91f6697106acd742.zip
btrfs: simplify range end calculations in truncate_block_zero_beyond_eof()
The way zero_end is calculated and used does a -1 and +1 that effectively cancel out, so this can be simplified. This is also preparatory patch for using a helper for folio_pos + folio_size with the semantics of exclusive end of the range. Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
0 files changed, 0 insertions, 0 deletions