hfsplus_delete_inode only truncates away all block allocations if
i_nlink is zero. Make sure we properly drop the unlink count even
when doing the rename hack for open but unlinked files.
Signed-off-by: Christoph Hellwig <hch@tuxera.com>
res = hfsplus_rename_cat(inode->i_ino,
dir, &dentry->d_name,
sbi->hidden_dir, &str);
res = hfsplus_rename_cat(inode->i_ino,
dir, &dentry->d_name,
sbi->hidden_dir, &str);
inode->i_flags |= S_DEAD;
inode->i_flags |= S_DEAD;
goto out;
}
res = hfsplus_delete_cat(cnid, dir, &dentry->d_name);
goto out;
}
res = hfsplus_delete_cat(cnid, dir, &dentry->d_name);