Skip to contentSkip to conversation

+ ocfs2-xattr-remove-useless-free-space-checking.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jun 26, 2013 OCFS2

lore
Share & tools
lore
#0 lore raw

Subject: + ocfs2-xattr-remove-useless-free-space-checking.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 26 Jun 2013 14:53:31 -0700

The patch titled
Subject: ocfs2: xattr: remove useless free space checking
has been added to the -mm tree. Its filename is
ocfs2-xattr-remove-useless-free-space-checking.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Junxiao Bi <[email protected]>
Subject: ocfs2: xattr: remove useless free space checking

Free space checking will be done in ocfs2_xattr_ibody_init(). So remove here.

---

 fs/ocfs2/xattr.c |    7 -------
 1 file changed, 7 deletions(-)
fs/ocfs2/xattr.c renamed from fs/ocfs2/xattr.c~ocfs2-xattr-remove-useless-free-space-checking +0 -5
diff -puN fs/ocfs2/xattr.c~ocfs2-xattr-remove-useless-free-space-checking fs/ocfs2/xattr.c
@@ -2759,13 +2759,6 @@ static int ocfs2_xattr_ibody_set(struct
 
 	down_write(&oi->ip_alloc_sem);
 	if (!(oi->ip_dyn_features & OCFS2_INLINE_XATTR_FL)) {
-		if (!ocfs2_xattr_has_space_inline(inode, di)) {
-			ret = -ENOSPC;
-			goto out;
-		}
-	}