Commit 6b1b186a authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Minor dio write path improvements



This switches where we take quota reservations to be per bch_wirte_op
instead of per dio_write, so we can drop the quota reservation in the
same place as we call i_sectors_acct(), and only take/release
ei_quota_lock once.

In the future we'd like ei_quota_lock to not be a mutex, so that we can
avoid punting to process context before deliving write completions in
nocow mode.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 84fea8e5
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