Skip to content
Commit 96607551 authored by Tao Ma's avatar Tao Ma Committed by Theodore Ts'o
Browse files

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: default avatarEric Sandeen <sandeen@redhat.com>
Signed-off-by: default avatarTao Ma <boyu.mt@taobao.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent f3fc0210
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment