diff options
author | Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com> | 2016-07-11 13:30:04 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-07-26 13:52:25 +0200 |
commit | 39581a3a1af7e03af41dde62a6485a934deb109b (patch) | |
tree | 357f62d91afca7d631b96744c86d70d4eae0fdbf /fs/btrfs/relocation.c | |
parent | Btrfs: subpage-blocksize: Rate limit scrub error message (diff) | |
download | linux-39581a3a1af7e03af41dde62a6485a934deb109b.tar.xz linux-39581a3a1af7e03af41dde62a6485a934deb109b.zip |
btrfs: fix free space calculation in dump_space_info()
In btrfs, btrfs_space_info's bytes_may_use is treated as fs used
space, as what we do in reserve_metadata_bytes() or
btrfs_alloc_data_chunk_ondemand(), so in dump_space_info(), when
calculating free space, we should also subtract btrfs_space_info's
bytes_may_use.
Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
0 files changed, 0 insertions, 0 deletions