aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2023-05-03 17:24:25 +0200
committerDavid Sterba <[email protected]>2023-06-19 13:59:27 +0200
commite95382834cf885b478dbe14a66451b863eb35c94 (patch)
tree05ef5f76e03158cdc33541c66f8f693ee4afd4d9 /scripts/generate_rust_target.rs
parentd87e6575e9d1c9d43e223c3fe858e4e453265707 (diff)
btrfs: always read the entire extent_buffer
Currently read_extent_buffer_pages skips pages that are already uptodate when reading in an extent_buffer. While this reduces the amount of data read, it increases the number of I/O operations as we now need to do multiple I/Os when reading an extent buffer with one or more uptodate pages in the middle of it. On any modern storage device, be that hard drives or SSDs this actually decreases I/O performance. Fortunately this case is pretty rare as the pages are always initially read together and then aged the same way. Besides simplifying the code a bit as-is this will allow for major simplifications to the I/O completion handler later on. Note that the case where all pages are uptodate is still handled by an optimized fast path that does not read any data from disk. Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Qu Wenruo <[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_target.rs')
0 files changed, 0 insertions, 0 deletions