aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/hfsplus/dir.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/hfsplus/dir.c b/fs/hfsplus/dir.c
index d236d85ec9d7..e490aaf35174 100644
--- a/fs/hfsplus/dir.c
+++ b/fs/hfsplus/dir.c
@@ -317,8 +317,10 @@ static int hfsplus_unlink(struct inode *dir, struct dentry *dentry)
317 res = hfsplus_rename_cat(inode->i_ino, 317 res = hfsplus_rename_cat(inode->i_ino,
318 dir, &dentry->d_name, 318 dir, &dentry->d_name,
319 sbi->hidden_dir, &str); 319 sbi->hidden_dir, &str);
320 if (!res) 320 if (!res) {
321 inode->i_flags |= S_DEAD; 321 inode->i_flags |= S_DEAD;
322 drop_nlink(inode);
323 }
322 goto out; 324 goto out;
323 } 325 }
324 res = hfsplus_delete_cat(cnid, dir, &dentry->d_name); 326 res = hfsplus_delete_cat(cnid, dir, &dentry->d_name);