]> git.baikalelectronics.ru Git - 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)
commit848ecc27aac54651b1c885df4798c61dc9d8d109
tree743a82e430a7662f4c9b90bd8fe112378db217a0
parent0c416653a83bc1192486eb008326f15aacb161bd
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