FAILED: patch "[PATCH] btrfs: release metadata before running delayed refs" failed to apply to 4.9-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 4.9-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
f45c752b65af46bf42963295c332865d95f97fffMon Sep 17 00:00:00 2001
From: Josef Bacik <[email protected]>
Date: Fri, 28 Sep 2018 07:17:48 -0400
Subject: [PATCH] btrfs: release metadata before running delayed refs
We want to release the unused reservation we have since it refills the delayed refs reserve, which will make everything go smoother when running the delayed refs if we're short on our reservation.
CC [email protected] # 4.4+
Reviewed-by Omar Sandoval <[email protected]>
Reviewed-by Liu Bo <[email protected]>
Reviewed-by Nikolay Borisov <[email protected]>
Signed-off-by Josef Bacik <[email protected]>
Signed-off-by David Sterba <[email protected]>
fs/btrfs/transaction.c +3 -3
@@ -1932,6 +1932,9 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans)return ret; } +btrfs_trans_release_metadata (trans); + trans->block_rsv =NULL ; +/* make a pass through all the delayed refs we have so far * any runnings procs may add more while we are here */
@@ -1941,9 +1944,6 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans)return ret; } -btrfs_trans_release_metadata (trans); - trans->block_rsv =NULL ; - cur_trans = trans->transaction;/*