[PATCH] r/o bind mount prepwork: inc_nlink() helper
[powerpc.git] / fs / autofs / root.c
index 54ad707..368a1c3 100644 (file)
@@ -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();