|
@@ -650,9 +650,14 @@ static int btrfs_delayed_inode_reserve_metadata(
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
ret = btrfs_block_rsv_migrate(src_rsv, dst_rsv, num_bytes);
|
|
ret = btrfs_block_rsv_migrate(src_rsv, dst_rsv, num_bytes);
|
|
- if (!WARN_ON(ret))
|
|
|
|
|
|
+ if (!ret)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
|
|
+ if (btrfs_test_opt(root, ENOSPC_DEBUG)) {
|
|
|
|
+ btrfs_debug(root->fs_info,
|
|
|
|
+ "block rsv migrate returned %d", ret);
|
|
|
|
+ WARN_ON(1);
|
|
|
|
+ }
|
|
/*
|
|
/*
|
|
* Ok this is a problem, let's just steal from the global rsv
|
|
* Ok this is a problem, let's just steal from the global rsv
|
|
* since this really shouldn't happen that often.
|
|
* since this really shouldn't happen that often.
|