diff options
author | Christoph Hellwig <[email protected]> | 2023-05-31 09:54:02 +0200 |
---|---|---|
committer | David Sterba <[email protected]> | 2023-06-19 13:59:36 +0200 |
commit | ec63b84d4611b2f07e9242080f3e8de4a011820b (patch) | |
tree | ba976b7b5152286a0cd47381692580a3e214e931 /scripts/generate_rust_analyzer.py | |
parent | 112397acc358883a90bb32b9597724dfbc3ccb41 (diff) |
btrfs: add an ordered_extent pointer to struct btrfs_bio
Add a pointer to the ordered_extent to the existing union in struct
btrfs_bio, so all code dealing with data write bios can just use a
pointer dereference to retrieve the ordered_extent instead of doing
multiple rbtree lookups per I/O.
The reference to this ordered_extent is dropped at end I/O time,
which implies that an extra one must be acquired when the bio is split.
This also requires moving the btrfs_extract_ordered_extent call into
btrfs_split_bio so that the invariant of always having a valid
ordered_extent reference for the btrfs_bio is kept.
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions