summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2014-06-26 16:11:53 +0200
committerTheodore Ts'o <tytso@mit.edu>2014-06-26 16:11:53 +0200
commite43bb4e612b402a631bc549ac496f78bc7a79438 (patch)
treec77a553f96df228a8cf66d970d11f12efa4d7c24 /lib
parentfs/mbcache: replace __builtin_log2() with ilog2() (diff)
downloadlinux-e43bb4e612b402a631bc549ac496f78bc7a79438.tar.xz
linux-e43bb4e612b402a631bc549ac496f78bc7a79438.zip
ext4: decrement free clusters/inodes counters when block group declared bad
We should decrement free clusters counter when block bitmap is marked as corrupt and free inodes counter when the allocation bitmap is marked as corrupt to avoid misunderstanding due to incorrect available size in statfs result. User can get immediately ENOSPC error from write begin without reaching for the writepages. Cc: Darrick J. Wong<darrick.wong@oracle.com> Reported-by: Amit Sahrawat <amit.sahrawat83@gmail.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions