aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2019-10-09 17:43:45 +0100
committerDavid Sterba <[email protected]>2019-10-11 19:49:11 +0200
commit44db1216efe37bf670f8d1019cdc41658d84baf5 (patch)
tree584d4dac8097603a5c850955546151b5618216d6 /lib/mpi/mpi-bit.c
parent431d39887d6273d6d84edf3c2eab09f4200e788a (diff)
Btrfs: add missing extents release on file extent cluster relocation error
If we error out when finding a page at relocate_file_extent_cluster(), we need to release the outstanding extents counter on the relocation inode, set by the previous call to btrfs_delalloc_reserve_metadata(), otherwise the inode's block reserve size can never decrease to zero and metadata space is leaked. Therefore add a call to btrfs_delalloc_release_extents() in case we can't find the target page. Fixes: 8b62f87bad9c ("Btrfs: rework outstanding_extents") CC: [email protected] # 4.19+ Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions