summaryrefslogtreecommitdiffstats
path: root/fs/nilfs2
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2019-10-09 18:43:45 +0200
committerDavid Sterba <dsterba@suse.com>2019-10-11 19:49:11 +0200
commit44db1216efe37bf670f8d1019cdc41658d84baf5 (patch)
tree584d4dac8097603a5c850955546151b5618216d6 /fs/nilfs2
parentbtrfs: silence maybe-uninitialized warning in clone_range (diff)
downloadlinux-44db1216efe37bf670f8d1019cdc41658d84baf5.tar.xz
linux-44db1216efe37bf670f8d1019cdc41658d84baf5.zip
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: stable@vger.kernel.org # 4.19+ Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/nilfs2')
0 files changed, 0 insertions, 0 deletions