]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: return ENOMEM when sb_getblk() fails
authorRui Xiang <rui.xiang@huawei.com>
Tue, 5 Nov 2013 05:55:01 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:01 +0000 (16:55 +1100)
commit309bb2d0122948af3072d3415ebda39edac5d346
tree9ca9603d861ac8787934065e29975c68af12fc0a
parentbd8522283646b4f1086bd0e2c41537225d2bb7ed
ocfs2: return ENOMEM when sb_getblk() fails

The only reason for sb_getblk() failing is if it can't allocate the
buffer_head.  So return ENOMEM instead when it fails.

Signed-off-by: Rui Xiang <rui.xiang@huawei.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/alloc.c
fs/ocfs2/aops.c
fs/ocfs2/dir.c
fs/ocfs2/namei.c
fs/ocfs2/refcounttree.c
fs/ocfs2/suballoc.c
fs/ocfs2/super.c
fs/ocfs2/xattr.c