aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2021-12-06 13:52:57 +0800
committerDavid Sterba <[email protected]>2022-01-07 14:18:25 +0100
commit0bb3acdc48243c0db9fd93fc904ce81bdb4049c9 (patch)
treee2e1930edbe7a4d8f7aef2dd421cd5bf2145b7ab /tools/perf/util/scripting-engines/trace-event-python.c
parent8697b8f88e2a750685b73c16c2a1bd438795ae90 (diff)
btrfs: update SCRUB_MAX_PAGES_PER_BLOCK
Use BTRFS_MAX_METADATA_BLOCKSIZE and SZ_4K (minimal sectorsize) to calculate this value. And remove one stale comment on the value, in fact with recent subpage support, BTRFS_MAX_METADATA_BLOCKSIZE * PAGE_SIZE is already beyond BTRFS_STRIPE_LEN, just we don't use the full page. Also since we're here, update the BUG_ON() related to SCRUB_MAX_PAGES_PER_BLOCK to ASSERT(). As those ASSERT() are really only for developers to catch early obvious bugs, not to let end users suffer. 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/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions