]> git.baikalelectronics.ru Git - kernel.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)
commit7042bd64aa45981355ce2bf1ecae7a3730a3e2b7
tree0959450c94f921c0080a5f9ee2f62e3ea9bfcf6e
parent297b1879d97b597915afe25d4585342a7eb595a6
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