Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hch/hfsplus
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hch/hfsplus: hfsplus: free space correcly for files unlinked while open hfsplus: fix double lock typo in ioctl
This commit is contained in:
@@ -317,8 +317,10 @@ static int hfsplus_unlink(struct inode *dir, struct dentry *dentry)
|
||||
res = hfsplus_rename_cat(inode->i_ino,
|
||||
dir, &dentry->d_name,
|
||||
sbi->hidden_dir, &str);
|
||||
if (!res)
|
||||
if (!res) {
|
||||
inode->i_flags |= S_DEAD;
|
||||
drop_nlink(inode);
|
||||
}
|
||||
goto out;
|
||||
}
|
||||
res = hfsplus_delete_cat(cnid, dir, &dentry->d_name);
|
||||
|
Reference in New Issue
Block a user