new helper: ihold()
[linux-2.6.git] / fs / namei.c
index f1ef97d..f7dbc06 100644 (file)
@@ -2285,7 +2285,7 @@ static long do_unlinkat(int dfd, const char __user *pathname)
                        goto slashes;
                inode = dentry->d_inode;
                if (inode)
-                       atomic_inc(&inode->i_count);
+                       ihold(inode);
                error = mnt_want_write(nd.path.mnt);
                if (error)
                        goto exit2;