Commit d95dd378 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: allocate_dropping_locks()



Add two new helpers for allocating memory with btree locks held: The
idea is to first try the allocation with GFP_NOWAIT|__GFP_NOWARN, then
if that fails - unlock, retry with GFP_KERNEL, and then call
trans_relock().

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 3ebfc8fe
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment