Skip to contentSkip to conversation

vfs: fix out-of-date dentry_unhash() comment

PATCH New J. Bruce Fields 1 participant 1 message Feb 15, 2012 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfs: fix out-of-date dentry_unhash() comment

From: "J. Bruce Fields" <[email protected]>

64252c75a2196a0cf1e0d3777143ecfe0e3ae650 "vfs: remove dget() from dentry_unhash()" changed the implementation but not the comment.

---
 fs/namei.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

I stumbled across this comment nit while looking for something else.

fs/namei.c +1 -1
index 208c6aa..2dba778 100644
@@ -2598,7 +2598,7 @@ SYSCALL_DEFINE2(mkdir, const char __user *, pathname, umode_t, mode)
 
 /*
  * The dentry_unhash() helper will try to drop the dentry early: we
- * should have a usage count of 2 if we're the only user of this
+ * should have a usage count of 1 if we're the only user of this
  * dentry, and if that is true (possibly after pruning the dcache),
  * then we drop the dentry now.
  *
Signature · 1 line
1.7.5.4