summaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2016-01-13 11:48:06 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-18 18:35:15 -0700
commit94863434d5f90aae0a956f7c2b753f959dcc0c85 (patch)
treeaeae58e65bd7c39b0788be8b381cfe1ce4949b93 /fs/btrfs/disk-io.c
parent94ad29d2ad1010e9966b385a3d4151fb475cfc61 (diff)
Btrfs: fix truncate_space_check
commit dc95f7bfc57fa4b75a77d0da84d5db249d74aa3f upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions