]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: make the bitmap read routines return real error codes
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 18 Oct 2015 01:33:24 +0000 (21:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 18 Oct 2015 01:33:24 +0000 (21:33 -0400)
commit7d6232775976cc9598ca82ae3d5669e085de15c4
tree2589e1bce43ea7704e99d3cb017db0804a0d885f
parent56316a0d28f251dae6a3bc2b6d50e7c25389871f
ext4: make the bitmap read routines return real error codes

Make the bitmap reaading routines return real error codes (EIO,
EFSCORRUPTED, EFSBADCRC) which can then be reflected back to
userspace for more precise diagnosis work.

In particular, this means that mballoc no longer claims that we're out
of memory if the block bitmaps become corrupt.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/balloc.c
fs/ext4/ialloc.c
fs/ext4/mballoc.c