diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/dcookies.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/dcookies.c b/fs/dcookies.c index 581aac959cd3..02aa0ddc582a 100644 --- a/fs/dcookies.c +++ b/fs/dcookies.c | |||
@@ -94,12 +94,10 @@ static struct dcookie_struct * alloc_dcookie(struct dentry * dentry, | |||
94 | if (!dcs) | 94 | if (!dcs) |
95 | return NULL; | 95 | return NULL; |
96 | 96 | ||
97 | atomic_inc(&dentry->d_count); | ||
98 | atomic_inc(&vfsmnt->mnt_count); | ||
99 | dentry->d_cookie = dcs; | 97 | dentry->d_cookie = dcs; |
100 | 98 | ||
101 | dcs->dentry = dentry; | 99 | dcs->dentry = dget(dentry); |
102 | dcs->vfsmnt = vfsmnt; | 100 | dcs->vfsmnt = mntget(vfsmnt); |
103 | hash_dcookie(dcs); | 101 | hash_dcookie(dcs); |
104 | 102 | ||
105 | return dcs; | 103 | return dcs; |