• J
    Btrfs: fix truncate_space_check · dc95f7bf
    Josef Bacik 提交于
    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: NJosef Bacik <jbacik@fb.com>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    dc95f7bf
inode.c 268.2 KB