diff options
| author | Qu Wenruo <[email protected]> | 2021-08-17 17:38:49 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2021-10-25 21:17:16 +0200 |
| commit | fdf250db89b65167891a73327f8cd4f58a323612 (patch) | |
| tree | c394000630daf9ae83589d38b4d59457a9d9e01d /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 9675ea8c9d0e397b9db723cd37dc5873e597cab2 (diff) | |
btrfs: subpage: only call btrfs_alloc_subpage() when sectorsize is smaller than PAGE_SIZE
There are two call sites of btrfs_alloc_subpage():
- btrfs_attach_subpage()
We have ensured sectorsize is smaller than PAGE_SIZE
- alloc_extent_buffer()
We call btrfs_alloc_subpage() unconditionally.
The alloc_extent_buffer() forces us to check the sectorsize size against
page size inside btrfs_alloc_subpage().
Since the function name, btrfs_alloc_subpage(), already indicates it
should only get called for subpage cases, do the check in
alloc_extent_buffer() and add an ASSERT() in btrfs_alloc_subpage().
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions