aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 2a337a09c650..02bb099845fd 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -3990,7 +3990,7 @@ err:
3990 return ret; 3990 return ret;
3991} 3991}
3992 3992
3993int btrfs_write_inode(struct inode *inode, int wait) 3993int btrfs_write_inode(struct inode *inode, struct writeback_control *wbc)
3994{ 3994{
3995 struct btrfs_root *root = BTRFS_I(inode)->root; 3995 struct btrfs_root *root = BTRFS_I(inode)->root;
3996 struct btrfs_trans_handle *trans; 3996 struct btrfs_trans_handle *trans;
@@ -3999,7 +3999,7 @@ int btrfs_write_inode(struct inode *inode, int wait)
3999 if (root->fs_info->btree_inode == inode) 3999 if (root->fs_info->btree_inode == inode)
4000 return 0; 4000 return 0;
4001 4001
4002 if (wait) { 4002 if (wbc->sync_mode == WB_SYNC_ALL) {
4003 trans = btrfs_join_transaction(root, 1); 4003 trans = btrfs_join_transaction(root, 1);
4004 btrfs_set_trans_block_group(trans, inode); 4004 btrfs_set_trans_block_group(trans, inode);
4005 ret = btrfs_commit_transaction(trans, root); 4005 ret = btrfs_commit_transaction(trans, root);