diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2025-01-21 05:40:51 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-02-07 19:51:18 +0000 |
| commit | 01af106a076352182b2916b143fc50272600bd81 (patch) | |
| tree | b6e1339f97eccfd8007f6aaea72d62a3e15a2e88 /scripts/generate_rust_target.rs | |
| parent | btrfs: avoid starting new transaction when cleaning qgroup during subvolume drop (diff) | |
| download | kernel-01af106a076352182b2916b143fc50272600bd81.tar.gz kernel-01af106a076352182b2916b143fc50272600bd81.zip | |
btrfs: fix two misuses of folio_shift()
It is meaningless to shift a byte count by folio_shift(). The folio index
is in units of PAGE_SIZE, not folio_size(). We can use folio_contains()
to make this work for arbitrary-order folios, so remove the assertion
that the folios are of order 0.
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Matthew Wilcox (Oracle) <[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
