aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jfs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jfs/namei.c')
-rw-r--r--fs/jfs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c
index 8cef88170aa4..b8d16a6aa88f 100644
--- a/fs/jfs/namei.c
+++ b/fs/jfs/namei.c
@@ -414,7 +414,7 @@ static int jfs_rmdir(struct inode *dip, struct dentry *dentry)
414 JFS_IP(ip)->acl.flag = 0; 414 JFS_IP(ip)->acl.flag = 0;
415 415
416 /* mark the target directory as deleted */ 416 /* mark the target directory as deleted */
417 ip->i_nlink = 0; 417 clear_nlink(ip);
418 mark_inode_dirty(ip); 418 mark_inode_dirty(ip);
419 419
420 rc = txCommit(tid, 2, &iplist[0], 0); 420 rc = txCommit(tid, 2, &iplist[0], 0);