Skip to content

Commit c0d0259

Browse files
J. Bruce FieldsAl Viro
authored andcommitted
vfs: fix out-of-date dentry_unhash() comment
64252c7 "vfs: remove dget() from dentry_unhash()" changed the implementation but not the comment. Cc: Sage Weil <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent bad6118 commit c0d0259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2710,7 +2710,7 @@ SYSCALL_DEFINE2(mkdir, const char __user *, pathname, umode_t, mode)
27102710

27112711
/*
27122712
* The dentry_unhash() helper will try to drop the dentry early: we
2713-
* should have a usage count of 2 if we're the only user of this
2713+
* should have a usage count of 1 if we're the only user of this
27142714
* dentry, and if that is true (possibly after pruning the dcache),
27152715
* then we drop the dentry now.
27162716
*

0 commit comments

Comments
 (0)