diff options
author | 2018-10-26 14:43:21 +0300 | |
---|---|---|
committer | 2018-12-17 14:51:36 +0100 | |
commit | 9bfd61d9755a515fc876aa70717824cea645bffd (patch) | |
tree | da83d574b3294daef1f283eab41cb652a9690335 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: Sink find_lock_delalloc_range's 'max_bytes' argument (diff) | |
download | linux-rng-9bfd61d9755a515fc876aa70717824cea645bffd.tar.xz linux-rng-9bfd61d9755a515fc876aa70717824cea645bffd.zip |
btrfs: Replace BUG_ON with ASSERT in find_lock_delalloc_range
lock_delalloc_pages should only return 2 values - 0 in case of success
and -EAGAIN if the range of pages to be locked should be shrunk due to
some of gone. Manual inspections confirms that this is indeed the case
since __process_pages_contig is where lock_delalloc_pages gets its
return value. The latter always returns 0 or -EAGAIN so the invariant
holds. No functional changes.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Nikolay Borisov <nborisov@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