From: Rui Xiang Date: Tue, 12 Nov 2013 23:06:54 +0000 (-0800) Subject: ocfs2: return ENOMEM when sb_getblk() fails X-Git-Tag: v3.13-rc1~106^2~260 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7391a294b861bf2c3b762dfdcf61b9c5f1bffa1f;p=pandora-kernel.git 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. [joseph.qi@huawei.com: ocfs2_symlink_get_block() and ocfs2_read_blocks_sync() and ocfs2_read_blocks() need the same change] Signed-off-by: Rui Xiang Reviewed-by: Jie Liu Reviewed-by: Mark Fasheh Cc: Joel Becker Cc: Joseph Qi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed