summaryrefslogtreecommitdiff
path: root/fs/bcachefs/bset.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-11-14 06:43:37 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:46 +0300
commit6b1b186a5a8e9cf4770e9546c3606fef40666830 (patch)
tree7bb738a19abf55c07d065c14d4179a5ba5fcf883 /fs/bcachefs/bset.h
parent84fea8e5b3abc9147a20211e608ba8844c479998 (diff)
downloadlinux-6b1b186a5a8e9cf4770e9546c3606fef40666830.tar.xz
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: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bset.h')
0 files changed, 0 insertions, 0 deletions