aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r--fs/btrfs/transaction.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 373c7ec1a026..29f782cc2cc9 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -634,7 +634,12 @@ int btrfs_write_and_wait_marked_extents(struct btrfs_root *root,
634 634
635 ret = btrfs_write_marked_extents(root, dirty_pages, mark); 635 ret = btrfs_write_marked_extents(root, dirty_pages, mark);
636 ret2 = btrfs_wait_marked_extents(root, dirty_pages, mark); 636 ret2 = btrfs_wait_marked_extents(root, dirty_pages, mark);
637 return ret || ret2; 637
638 if (ret)
639 return ret;
640 if (ret2)
641 return ret2;
642 return 0;
638} 643}
639 644
640int btrfs_write_and_wait_transaction(struct btrfs_trans_handle *trans, 645int btrfs_write_and_wait_transaction(struct btrfs_trans_handle *trans,