aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index f4e45fdded30..0209b5fc772c 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -623,6 +623,8 @@ int btrfs_sync_fs(struct super_block *sb, int wait)
623 btrfs_wait_ordered_extents(root, 0, 0); 623 btrfs_wait_ordered_extents(root, 0, 0);
624 624
625 trans = btrfs_start_transaction(root, 0); 625 trans = btrfs_start_transaction(root, 0);
626 if (IS_ERR(trans))
627 return PTR_ERR(trans);
626 ret = btrfs_commit_transaction(trans, root); 628 ret = btrfs_commit_transaction(trans, root);
627 return ret; 629 return ret;
628} 630}