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)
commit9008a58e5dcee014f5de69d154e2620870f9224e
tree0959450c94f921c0080a5f9ee2f62e3ea9bfcf6e
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