]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/jfs/namei.c
[PATCH] r/o bind mounts: monitor zeroing of i_nlink
[linux-2.6-omap-h63xx.git] / fs / jfs / namei.c
index 8cef88170aa4b269204295cd683821bb85d0cec8..b8d16a6aa88f0c7c11f4bb741f671bba40ac51c6 100644 (file)
@@ -414,7 +414,7 @@ static int jfs_rmdir(struct inode *dip, struct dentry *dentry)
        JFS_IP(ip)->acl.flag = 0;
 
        /* mark the target directory as deleted */
-       ip->i_nlink = 0;
+       clear_nlink(ip);
        mark_inode_dirty(ip);
 
        rc = txCommit(tid, 2, &iplist[0], 0);