]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix truncate_space_check
authorJosef Bacik <jbacik@fb.com>
Wed, 13 Jan 2016 16:48:06 +0000 (11:48 -0500)
committerDavid Sterba <dsterba@suse.com>
Thu, 18 Feb 2016 10:22:24 +0000 (11:22 +0100)
commitb5df9ac82b48fb1437f9d3c632bb05dded4782bf
tree701b1ece85b20b5082e816958bc28c51c8a5d9cd
parent56234b6a1b1814890463ae78287495afb22eeb2b
Btrfs: fix truncate_space_check

truncate_space_check is using btrfs_csum_bytes_to_leaves() but forgetting to
multiply by nodesize so we get an actual byte count.  We need a tracepoint here
so that we have the matching reserve for the release that will come later.  Also
add a comment to make clear what the intent of truncate_space_check is.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c