Skip to contentSkip to conversation

ocfs2-remove-redundant-conditional-before-iput.patch removed from -mm tree

merged [email protected] 1 participant 1 message Feb 25, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: ocfs2: remove redundant conditional before iput
has been removed from the -mm tree. Its filename was
ocfs2-remove-redundant-conditional-before-iput.patch

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

------------------------------------------------------
From: Yi Li <[email protected]>
Subject: ocfs2: remove redundant conditional before iput

iput handles NULL pointers gracefully, so there's no need to check the pointer before the call.

---

 fs/ocfs2/super.c |    2 --
 1 file changed, 2 deletions(-)
fs/ocfs2/super.c renamed from fs/ocfs2/super.c~ocfs2-remove-redundant-conditional-before-iput +0 -2
@@ -973,8 +973,6 @@ static void ocfs2_disable_quotas(struct
 		 * quota files */
 		dquot_disable(sb, type, DQUOT_USAGE_ENABLED |
 					DQUOT_LIMITS_ENABLED);
-		if (!inode)
-			continue;
 		iput(inode);
 	}
 }

_

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