diff options
author | Alexander Lobakin <alexandr.lobakin@intel.com> | 2022-07-11 20:09:30 +0200 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-07-12 17:00:50 +0200 |
commit | 30fd8cdf53a02b54b199043fcf1857db76e8badc (patch) | |
tree | 207d67f462494fe52b63a31330ca56063b67bdc2 /mm/page_reporting.c | |
parent | lib/bitmap: fix off-by-one in bitmap_to_arr64() (diff) | |
download | linux-30fd8cdf53a02b54b199043fcf1857db76e8badc.tar.xz linux-30fd8cdf53a02b54b199043fcf1857db76e8badc.zip |
lib/test_bitmap: test the tail after bitmap_to_arr64()
Currently, test_bitmap_arr64() only tests bitmap_to_arr64()'s sanity
by comparing the result of double-conversion (bm -> arr64 -> bm2)
with the input bitmap. However, this may be not enough when one side
hides bugs of the second one (e.g. tail clearing, which is being
performed by both).
Expand the tests and check the tail of the actual arr64 used as
a temporary buffer for double-converting.
Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'mm/page_reporting.c')
0 files changed, 0 insertions, 0 deletions