summaryrefslogtreecommitdiff
path: root/fs/btrfs/zstd.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2019-05-10 07:45:05 +0300
committerDavid Sterba <dsterba@suse.com>2019-05-16 15:31:13 +0300
commit14ae4ec1ee1466b701e0518f9acbb0bbd8ab0684 (patch)
treeb003ed219dcbbe322a3ce6f5bf4817364b392bb8 /fs/btrfs/zstd.c
parente32773357d5cc271b1d23550b3ed026eb5c2a468 (diff)
downloadlinux-14ae4ec1ee1466b701e0518f9acbb0bbd8ab0684.tar.xz
btrfs: extent-tree: Fix a bug that btrfs is unable to add pinned bytes
Commit ddf30cf03fb5 ("btrfs: extent-tree: Use btrfs_ref to refactor add_pinned_bytes()") refactored add_pinned_bytes(), but during that refactor, there are two callers which add the pinned bytes instead of subtracting. That refactor misses those two caller, causing incorrect pinned bytes calculation and resulting unexpected ENOSPC error. Fix it by adding a new parameter @sign to restore the original behavior. Reported-by: kernel test robot <rong.a.chen@intel.com> Fixes: ddf30cf03fb5 ("btrfs: extent-tree: Use btrfs_ref to refactor add_pinned_bytes()") Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zstd.c')
0 files changed, 0 insertions, 0 deletions