mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
Fix btrfs_del_ordered_inode to allow forcing the drop during unlinks
This allows us to delete an unlinked inode with dirty pages from the list instead of forcing commit to write these out before deleting the inode. Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
051e1b9f74
commit
594a24eb0e
5 changed files with 19 additions and 13 deletions
|
@ -976,7 +976,7 @@ out_nolock:
|
|||
|
||||
int btrfs_release_file(struct inode * inode, struct file * filp)
|
||||
{
|
||||
btrfs_del_ordered_inode(inode);
|
||||
btrfs_del_ordered_inode(inode, 0);
|
||||
if (filp->private_data)
|
||||
btrfs_ioctl_trans_end(filp);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue