]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
btrfs: do not decrease bytes_may_use when replaying extents
authorWang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Fri, 26 Aug 2016 03:33:14 +0000 (11:33 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Sep 2016 15:40:41 +0000 (17:40 +0200)
commited7a6948394305b810d0c6203268648715e5006f
tree743a82e430a7662f4c9b90bd8fe112378db217a0
parentcb887083d084d74421ae7bb18acca40568da791f
btrfs: do not decrease bytes_may_use when replaying extents

When replaying extents, there is no need to update bytes_may_use
in btrfs_alloc_logged_file_extent(), otherwise it'll trigger a
WARN_ON about bytes_may_use.

Fixes: ("btrfs: update btrfs_space_info's bytes_may_use timely")
Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c