]> git.baikalelectronics.ru Git - kernel.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)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 12 Jan 2013 21:19:36 +0000 (16:19 -0500)
commit24c339e6263b60bb6f03dbdb3ad4ee782337bf71
treef4b8f664599f043b7aa7b86a9a135aa275f0a5e2
parent0535dafcce1bd9f556e205dba871e11794ee3a77
ext4: return ENOMEM if sb_getblk() fails

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>
Cc: stable@vger.kernel.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