aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-06-11 17:10:24 +0000
committerDavid Sterba <[email protected]>2025-07-21 21:58:03 +0000
commitfdeffeb4f58797eb2ca3194a16eb1b49637ac0d4 (patch)
treee7d3b7b91ddb9f597d3f2597c2dbc7eb849e8de2 /fs/btrfs/tree-log.c
parentbtrfs: use fs_info from local variable in btrfs_convert_free_space_to_extents() (diff)
downloadkernel-fdeffeb4f58797eb2ca3194a16eb1b49637ac0d4.tar.gz
kernel-fdeffeb4f58797eb2ca3194a16eb1b49637ac0d4.zip
btrfs: add and use helper to determine if using bitmaps in free space tree
When adding and removing free space to the free space tree, we need to lookup the respective block group's free info item in the free space tree, check its flags for the BTRFS_FREE_SPACE_USING_BITMAPS bit and then release the path. Move these steps into a helper function and use it in both sites. This will also help avoiding duplicate code in a subsequent change. Reviewed-by: Boris Burkov <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions