]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfs/dir.c
[PATCH] r/o bind mounts: monitor zeroing of i_nlink
[linux-2.6-omap-h63xx.git] / fs / nfs / dir.c
index 26eecb86f9b085b145c169faad6288e68a8a4417..481f8892a919489cb5705269834b0145b0d5c8f1 100644 (file)
@@ -1286,7 +1286,7 @@ static int nfs_rmdir(struct inode *dir, struct dentry *dentry)
        error = NFS_PROTO(dir)->rmdir(dir, &dentry->d_name);
        /* Ensure the VFS deletes this inode */
        if (error == 0 && dentry->d_inode != NULL)
-               dentry->d_inode->i_nlink = 0;
+               clear_nlink(dentry->d_inode);
        nfs_end_data_update(dir);
        unlock_kernel();