]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: let getattr report the right blocks in delalloc+bigalloc
authorTao Ma <boyu.mt@taobao.com>
Fri, 1 Jun 2012 02:54:16 +0000 (22:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 1 Jun 2012 02:54:16 +0000 (22:54 -0400)
commitb8c41171baeb1c3ea462b92af03d5d379c037c5d
treeb7192f775c46add4ad1b96d8c766ce236aec872f
parent80bb888f97df2e20232376778ecdc084378863ec
ext4: let getattr report the right blocks in delalloc+bigalloc

In delayed allocation, i_reserved_data_blocks now indicates
clusters, not blocks. So report it in the right number.

This can be easily exposed by the following command:
echo foo > blah; du -hc blah; sync; du -hc blah

Reported-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c