]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: decrement free clusters/inodes counters when block group declared bad
authorNamjae Jeon <namjae.jeon@samsung.com>
Thu, 26 Jun 2014 14:11:53 +0000 (10:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 26 Jun 2014 14:11:53 +0000 (10:11 -0400)
commit5ce7cabe38c21659c5de5b447da16f3ab97cebac
treec77a553f96df228a8cf66d970d11f12efa4d7c24
parent214c553d6d083233c63e62413ac85d0ff73fdd2b
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>
fs/ext4/balloc.c
fs/ext4/ialloc.c
fs/ext4/mballoc.c