diff options
| author | Boris Burkov <[email protected]> | 2023-03-28 05:19:49 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-04-17 16:01:21 +0000 |
| commit | 53f2c20687ba2cfce79d87f487c281ef7a4b25ce (patch) | |
| tree | 483f9bff7ccdcc3d998c2c332d04e1883ef3c2e7 /fs/btrfs/ordered-data.c | |
| parent | btrfs: pass flags as unsigned long to btrfs_add_ordered_extent (diff) | |
| download | kernel-53f2c20687ba2cfce79d87f487c281ef7a4b25ce.tar.gz kernel-53f2c20687ba2cfce79d87f487c281ef7a4b25ce.zip | |
btrfs: stash ordered extent in dio_data during iomap dio
While it is not feasible for an ordered extent to survive across the
calls btrfs_direct_write makes into __iomap_dio_rw, it is still helpful
to stash it on the dio_data in between creating it in iomap_begin and
finishing it in either end_io or iomap_end.
The specific use I have in mind is that we can check if a particular bio
is partial in submit_io without unconditionally looking up the ordered
extent. This is a preparatory patch for a later patch which does just
that.
Reviewed-by: Naohiro Aota <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Tested-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Boris Burkov <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
0 files changed, 0 insertions, 0 deletions
