summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-06-25 22:01:30 +0200
committerChris Mason <chris.mason@oracle.com>2008-09-25 17:04:03 +0200
commit594a24eb0e7fa8413f8b443863be4b7c72bfde9f (patch)
tree616ddbee05148d18096fc56daf0a9af598078fc6 /fs/btrfs/file.c
parentDrop locks in btrfs_search_slot when reading a tree block. (diff)
downloadlinux-594a24eb0e7fa8413f8b443863be4b7c72bfde9f.tar.xz
linux-594a24eb0e7fa8413f8b443863be4b7c72bfde9f.zip
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>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 18bbe108a0e6..b7f8f92daf8a 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -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;