Skip to contentSkip to conversation

ocfs2-xattr-assign-errno-to-ret-in-ocfs2_calc_xattr_init.patch removed from -mm tree

merged [email protected] 1 participant 1 message Feb 1, 2018

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: ocfs2/xattr: assign errno to 'ret' in ocfs2_calc_xattr_init()
has been removed from the -mm tree. Its filename was
ocfs2-xattr-assign-errno-to-ret-in-ocfs2_calc_xattr_init.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: piaojun <[email protected]>
Subject: ocfs2/xattr: assign errno to 'ret' in ocfs2_calc_xattr_init()

We need catch the errno returned by ocfs2_xattr_get_nolock() and assign it to 'ret' for printing and noticing upper callers.

---

 fs/ocfs2/xattr.c |    1 +
 1 file changed, 1 insertion(+)
fs/ocfs2/xattr.c renamed from fs/ocfs2/xattr.c~ocfs2-xattr-assign-errno-to-ret-in-ocfs2_calc_xattr_init +1 -0
diff -puN fs/ocfs2/xattr.c~ocfs2-xattr-assign-errno-to-ret-in-ocfs2_calc_xattr_init fs/ocfs2/xattr.c
@@ -646,6 +646,7 @@ int ocfs2_calc_xattr_init(struct inode *
 			if (S_ISDIR(mode))
 				a_size <<= 1;
 		} else if (acl_len != 0 && acl_len != -ENODATA) {
+			ret = acl_len;
 			mlog_errno(ret);
 			return ret;
 		}

_

Patches currently in -mm which might be from [email protected] are