]> git.baikalelectronics.ru Git - kernel.git/commit
XArray tests: Check mark 2 gets squashed
authorMatthew Wilcox <willy@infradead.org>
Mon, 14 Jan 2019 18:57:31 +0000 (13:57 -0500)
committerMatthew Wilcox <willy@infradead.org>
Mon, 14 Jan 2019 19:50:34 +0000 (14:50 -0500)
commit2180f1cae727ff24f93217894044f84e8c3a5757
tree9e0b20a7414f615de4cfade013a4e8b93451bb90
parent604a6fb88905be488667b50284314025616d8f4d
XArray tests: Check mark 2 gets squashed

We do not currently check that the loop in xas_squash_marks() doesn't have
an off-by-one error in it.  It didn't, but a patch which introduced an
off-by-one error wasn't caught by any existing test.  Switch the roles
of XA_MARK_1 and XA_MARK_2 to catch that bug.

Reported-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Matthew Wilcox <willy@infradead.org>
lib/test_xarray.c