aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2022-09-19 14:06:33 +0000
committerDavid Sterba <[email protected]>2022-09-29 15:08:30 +0000
commita1ba4c080bef187f5bdbc2191092fbe7341a5794 (patch)
treed77d701cb1e892c9dab5bf1c695644199272739d /fs/jbd2/commit.c
parentbtrfs: move open coded extent map tree deletion out of inode eviction (diff)
downloadkernel-a1ba4c080bef187f5bdbc2191092fbe7341a5794.tar.gz
kernel-a1ba4c080bef187f5bdbc2191092fbe7341a5794.zip
btrfs: add helper to replace extent map range with a new extent map
We have several places that need to drop all the extent maps in a given file range and then add a new extent map for that range. Currently they call btrfs_drop_extent_map_range() to delete all extent maps in the range and then keep trying to add the new extent map in a loop that keeps retrying while the insertion of the new extent map fails with -EEXIST. So instead of repeating this logic, add a helper to extent_map.c that does these steps and name it btrfs_replace_extent_map_range(). Also add a comment about why the retry loop is necessary. Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions