]> Git Repo - linux.git/commit - fs/ocfs2/aops.c
ocfs2: return ENOMEM when sb_getblk() fails
authorRui Xiang <[email protected]>
Tue, 12 Nov 2013 23:06:54 +0000 (15:06 -0800)
committerLinus Torvalds <[email protected]>
Wed, 13 Nov 2013 03:09:00 +0000 (12:09 +0900)
commit7391a294b861bf2c3b762dfdcf61b9c5f1bffa1f
tree4c34e441b90db49696fe8dffb9599753c2e26db3
parentf0cb0f0bca233935ac70707d47f5885419a7fd31
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.

[[email protected]: ocfs2_symlink_get_block() and ocfs2_read_blocks_sync() and ocfs2_read_blocks() need the same change]
Signed-off-by: Rui Xiang <[email protected]>
Reviewed-by: Jie Liu <[email protected]>
Reviewed-by: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Joseph Qi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/alloc.c
fs/ocfs2/aops.c
fs/ocfs2/buffer_head_io.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
This page took 0.058012 seconds and 4 git commands to generate.