Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4297
b: refs/heads/master
c: 732dbef
h: refs/heads/master
i:
  4295: b2cc982
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Jul 8, 2005
1 parent 42bcb8f commit d0140df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 484e389c63472a7f8cfb491cf11b047364e59365
refs/heads/master: 732dbef606f22a23cb3e1029d613977ec645e8ae
6 changes: 2 additions & 4 deletions trunk/fs/dcookies.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,10 @@ static struct dcookie_struct * alloc_dcookie(struct dentry * dentry,
if (!dcs)
return NULL;

atomic_inc(&dentry->d_count);
atomic_inc(&vfsmnt->mnt_count);
dentry->d_cookie = dcs;

dcs->dentry = dentry;
dcs->vfsmnt = vfsmnt;
dcs->dentry = dget(dentry);
dcs->vfsmnt = mntget(vfsmnt);
hash_dcookie(dcs);

return dcs;
Expand Down

0 comments on commit d0140df

Please sign in to comment.