diff options
author | Christoph Hellwig <[email protected]> | 2023-05-03 17:24:32 +0200 |
---|---|---|
committer | David Sterba <[email protected]> | 2023-06-19 13:59:28 +0200 |
commit | 81a79b6ae4519a97c5924d68e1fb77d283cb051d (patch) | |
tree | 7dbbebc2d23afcc280f144a3db873f3c355b7fbe /scripts/generate_rust_target.rs | |
parent | 50b21d7a066f9a702b1d54ca11fc577302e875cb (diff) |
btrfs: move page locking from lock_extent_buffer_for_io to write_one_eb
Locking the pages in lock_extent_buffer_for_io only for the non-subpage
case is very confusing. Move it to write_one_eb to mirror the subpage
case and simplify the code. Now lock_extent_buffer_for_io does not leave
all the pages locked and each is individually locked/unlocked in
write_one_eb.
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_target.rs')
0 files changed, 0 insertions, 0 deletions