projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] r/o bind mount prepwork: inc_nlink() helper
[powerpc.git]
/
fs
/
autofs
/
root.c
diff --git
a/fs/autofs/root.c
b/fs/autofs/root.c
index
54ad707
..
368a1c3
100644
(file)
--- a/
fs/autofs/root.c
+++ b/
fs/autofs/root.c
@@
-466,7
+466,7
@@
static int autofs_root_mkdir(struct inode *dir, struct dentry *dentry, int mode)
ent->dentry = dentry;
autofs_hash_insert(dh,ent);
-
dir->i_nlink++
;
+
inc_nlink(dir)
;
d_instantiate(dentry, iget(dir->i_sb,ino));
unlock_kernel();