diff options
author | 2021-09-27 15:22:00 +0800 | |
---|---|---|
committer | 2021-10-26 19:08:04 +0200 | |
commit | bbbff01a47bfe1b7733c5ccac6a78ff6d7a8954f (patch) | |
tree | f4826766c519b22683fb9222f949d127d9113a80 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: subpage: make compress_file_range() compatible (diff) | |
download | wireguard-linux-bbbff01a47bfe1b7733c5ccac6a78ff6d7a8954f.tar.xz wireguard-linux-bbbff01a47bfe1b7733c5ccac6a78ff6d7a8954f.zip |
btrfs: subpage: make btrfs_submit_compressed_write() compatible
There is a WARN_ON() checking if @start is aligned to PAGE_SIZE, not
sectorsize, which will cause false alert for subpage. Fix it to check
against sectorsize.
Furthermore:
- Use ASSERT() to do the check
So that in the future we may skip the check for production build
- Also check alignment for @len
Signed-off-by: Qu Wenruo <wqu@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