• Kent Overstreet's avatar
    bcachefs: Minor dio write path improvements · 6b1b186a
    Kent Overstreet authored
    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>
    6b1b186a
fs-io.c 87.6 KB