projects
/
linux-flexiantxendom0-3.2.10.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
new helper: ihold()
[linux-flexiantxendom0-3.2.10.git]
/
fs
/
namei.c
diff --git
a/fs/namei.c
b/fs/namei.c
index
f1ef97d
..
f7dbc06
100644
(file)
--- a/
fs/namei.c
+++ b/
fs/namei.c
@@
-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;