diff options
author | Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com> | 2016-07-25 15:51:38 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2016-08-25 03:58:24 -0700 |
commit | dcb40c196fc85c6dfb28456480e5a882e26f567d (patch) | |
tree | 7cd6cdb47c6e1c970f20c708fea15c65a67f6dcf /fs/ioctl.c | |
parent | df2c95f33e0a28b22509e4ee85365eedf32a1056 (diff) | |
download | op-kernel-dev-dcb40c196fc85c6dfb28456480e5a882e26f567d.zip op-kernel-dev-dcb40c196fc85c6dfb28456480e5a882e26f567d.tar.gz |
btrfs: use correct offset for reloc_inode in prealloc_file_extent_cluster()
In prealloc_file_extent_cluster(), btrfs_check_data_free_space() uses
wrong file offset for reloc_inode, it uses cluster->start and cluster->end,
which indeed are extent's bytenr. The correct value should be
cluster->[start|end] minus block group's start bytenr.
start bytenr cluster->start
| | extent | extent | ...| extent |
|----------------------------------------------------------------|
| block group reloc_inode |
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>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/ioctl.c')
0 files changed, 0 insertions, 0 deletions