Ext2: return ENOMEM rather than EIO if sb_getblk fails
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Wed, 16 Jan 2013 05:19:06 +0000 (21:19 -0800)
committerJan Kara <jack@suse.cz>
Mon, 21 Jan 2013 10:19:57 +0000 (11:19 +0100)
commitab6a773dbcbd2bba3ead8676ae21ce5adbbdc035
tree592ec692b6eb5136fe942af8ec30deb7878845f6
parent1b7d76e9b1106f2be062f915b05d47658dd4fc63
Ext2: return ENOMEM rather than EIO if sb_getblk fails

As the only reason that sb_getblks fails is that allocation fails.
It will be better to use ENOMEM rather than EIO.

Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/xattr.c