]> git.dujemihanovic.xyz Git - linux.git/commit
XArray: set the marks correctly when splitting an entry
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 1 May 2024 15:31:18 +0000 (16:31 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:28:08 +0000 (17:28 -0700)
commit2a0774c2886d25f4d2987cd3e3813d16bf96f34f
treedc64341591255153a95ca599ed33cb2d7b2d95a3
parent48f044a784d6783f862b035ce5c5cca81b0ca117
XArray: set the marks correctly when splitting an entry

If we created a new node to replace an entry which had search marks set,
we were setting the search mark on every entry in that node.  That works
fine when we're splitting to order 0, but when splitting to a larger
order, we must not set the search marks on the sibling entries.

Link: https://lkml.kernel.org/r/20240501153120.4094530-1-willy@infradead.org
Fixes: c010d47f107f ("mm: thp: split huge page to any lower order pages")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reported-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/ZjFGCOYk3FK_zVy3@bombadil.infradead.org
Tested-by: Luis Chamberlain <mcgrof@kernel.org>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test_xarray.c
lib/xarray.c