diff options
author | 2021-12-06 13:52:57 +0800 | |
---|---|---|
committer | 2022-01-07 14:18:25 +0100 | |
commit | 0bb3acdc48243c0db9fd93fc904ce81bdb4049c9 (patch) | |
tree | e2e1930edbe7a4d8f7aef2dd421cd5bf2145b7ab /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: do not check -EAGAIN when truncating inodes in the log root (diff) | |
download | wireguard-linux-0bb3acdc48243c0db9fd93fc904ce81bdb4049c9.tar.xz wireguard-linux-0bb3acdc48243c0db9fd93fc904ce81bdb4049c9.zip |
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 <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions