Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eebc6084 authored by Miao Xie's avatar Miao Xie Committed by Josef Bacik
Browse files

Btrfs: check the return value of btrfs_run_ordered_operations()



We forget to check the return value of btrfs_run_ordered_operations() when
flushing all the pending stuffs, fix it.

Signed-off-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent 3edb2a68
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1451,9 +1451,9 @@ static int btrfs_flush_all_pending_stuffs(struct btrfs_trans_handle *trans,
	 * it here and no for sure that nothing new will be added
	 * to the list
	 */
	btrfs_run_ordered_operations(root, 1);
	ret = btrfs_run_ordered_operations(root, 1);

	return 0;
	return ret;
}

/*