diff options
| author | David Sterba <[email protected]> | 2025-06-10 12:17:55 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-07-21 21:58:01 +0000 |
| commit | 55cd57faa5034674200aac4a91387c06c3f1170c (patch) | |
| tree | e37adc448a3de29833d9cc7e9385f0b8b28992cc /fs/btrfs/ordered-data.c | |
| parent | btrfs: add helper folio_end() (diff) | |
| download | kernel-55cd57faa5034674200aac4a91387c06c3f1170c.tar.gz kernel-55cd57faa5034674200aac4a91387c06c3f1170c.zip | |
btrfs: use folio_end() where appropriate
Simplify folio_pos() + folio_size() and use the new helper.
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
| -rw-r--r-- | fs/btrfs/ordered-data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index 9212ce110cde..2829f20d7bb5 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c @@ -359,7 +359,7 @@ static bool can_finish_ordered_extent(struct btrfs_ordered_extent *ordered, if (folio) { ASSERT(folio->mapping); ASSERT(folio_pos(folio) <= file_offset); - ASSERT(file_offset + len <= folio_pos(folio) + folio_size(folio)); + ASSERT(file_offset + len <= folio_end(folio)); /* * Ordered flag indicates whether we still have |
