diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-29 02:47:33 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:04 -0400 |
commit | 9f311f2166eb969dbe3d69ab24cd78567a30d62c (patch) | |
tree | a1e041bda4ca7766691ef933d9bfa81f6344bc2d /fs/bcachefs/inode.c | |
parent | af171183194f73cca9a2f44ba13907ecc9c761a9 (diff) | |
download | lwn-9f311f2166eb969dbe3d69ab24cd78567a30d62c.tar.gz lwn-9f311f2166eb969dbe3d69ab24cd78567a30d62c.zip |
bcachefs: Don't use bch_write_op->cl for delivering completions
We already had op->end_io as an alternative mechanism to op->cl.parent
for delivering write completions; this switches all code paths to using
op->end_io.
Two reasons:
- op->end_io is more efficient, due to fewer atomic ops, this completes
the conversion that was originally only done for the direct IO path.
- We'll be restructing the write path to use a different mechanism for
punting to process context, refactoring to not use op->cl will make
that easier.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/inode.c')
0 files changed, 0 insertions, 0 deletions