|
@@ -2789,9 +2789,9 @@ u64 btrfs_csum_bytes_to_leaves(struct btrfs_fs_info *fs_info, u64 csum_bytes)
|
|
return num_csums;
|
|
return num_csums;
|
|
}
|
|
}
|
|
|
|
|
|
-int btrfs_check_space_for_delayed_refs(struct btrfs_trans_handle *trans,
|
|
|
|
- struct btrfs_fs_info *fs_info)
|
|
|
|
|
|
+int btrfs_check_space_for_delayed_refs(struct btrfs_trans_handle *trans)
|
|
{
|
|
{
|
|
|
|
+ struct btrfs_fs_info *fs_info = trans->fs_info;
|
|
struct btrfs_block_rsv *global_rsv;
|
|
struct btrfs_block_rsv *global_rsv;
|
|
u64 num_heads = trans->transaction->delayed_refs.num_heads_ready;
|
|
u64 num_heads = trans->transaction->delayed_refs.num_heads_ready;
|
|
u64 csum_bytes = trans->transaction->delayed_refs.pending_csums;
|
|
u64 csum_bytes = trans->transaction->delayed_refs.pending_csums;
|
|
@@ -2842,7 +2842,7 @@ int btrfs_should_throttle_delayed_refs(struct btrfs_trans_handle *trans,
|
|
if (val >= NSEC_PER_SEC / 2)
|
|
if (val >= NSEC_PER_SEC / 2)
|
|
return 2;
|
|
return 2;
|
|
|
|
|
|
- return btrfs_check_space_for_delayed_refs(trans, fs_info);
|
|
|
|
|
|
+ return btrfs_check_space_for_delayed_refs(trans);
|
|
}
|
|
}
|
|
|
|
|
|
struct async_delayed_refs {
|
|
struct async_delayed_refs {
|