]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: return ENOMEM if sb_getblk() fails
authorTheodore Ts'o <tytso@mit.edu>
Sat, 12 Jan 2013 21:19:36 +0000 (16:19 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Mar 2013 22:03:36 +0000 (06:03 +0800)
commit94bd696b65ded45d57f4a9563edf4e8b77dc070f
tree60056bf065e66bf36e422ec57f6701ea2dc216ef
parent84d239fa2e3c0ab232577774dd35596b049de235
ext4: return ENOMEM if sb_getblk() fails

commit 860d21e2c585f7ee8a4ecc06f474fdc33c9474f4 upstream.

The only reason for sb_getblk() failing is if it can't allocate the
buffer_head.  So ENOMEM is more appropriate than EIO.  In addition,
make sure that the file system is marked as being inconsistent if
sb_getblk() fails.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/extents.c
fs/ext4/indirect.c
fs/ext4/inline.c
fs/ext4/inode.c
fs/ext4/mmp.c
fs/ext4/resize.c
fs/ext4/xattr.c