From: Jan Kara Date: Wed, 10 Dec 2014 23:41:40 +0000 (-0800) Subject: ocfs2: Fix xattr check in ocfs2_get_xattr_nolock() X-Git-Tag: omap-for-v3.19/fixes-rc1~142^2~179 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b693005b833ba309c7cb8426cd023d8e80da31e;p=pandora-kernel.git ocfs2: Fix xattr check in ocfs2_get_xattr_nolock() ocfs2_get_xattr_nolock() checks whether inode has any extended attributes (OCFS2_HAS_XATTR_FL). If not, it just sets 'ret' to -ENODATA but continues with checking inline and external attributes anyway (which is pointless although it does not harm). Just return immediately when we know there are no extended attributes in the inode. Coverity id: 1226906. Signed-off-by: Jan Kara Cc: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed