From 3493e0abb273621e458c4f8e76a6a258203a5269 Mon Sep 17 00:00:00 2001
From: Andrew Morton <akpm@digeo.com>
Date: Thu, 29 May 2003 09:22:26 -0700
Subject: [PATCH] [PATCH] speed up the unlink speedup

I'm not sure why I used igrab() in unlink().  igrab takes the oft-taken
inode_lock.

The caller has a ref, so a simple increment of i_count will suffice.
---
 fs/namei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/namei.c b/fs/namei.c
index 89ff3016754b..03245809b798 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1671,7 +1671,7 @@ asmlinkage long sys_unlink(const char __user * pathname)
 			goto slashes;
 		inode = dentry->d_inode;
 		if (inode)
-			inode = igrab(inode);
+			atomic_inc(&inode->i_count);
 		error = vfs_unlink(nd.dentry->d_inode, dentry);
 	exit2:
 		dput(dentry);
-- 
2.30.9