Commit 2a0774c
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: c010d47 ("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>1 parent 48f044a commit 2a0774c
2 files changed
Lines changed: 32 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1788 | 1788 | | |
1789 | 1789 | | |
1790 | 1790 | | |
1791 | | - | |
| 1791 | + | |
| 1792 | + | |
1792 | 1793 | | |
1793 | 1794 | | |
| 1795 | + | |
1794 | 1796 | | |
1795 | 1797 | | |
1796 | 1798 | | |
| |||
1807 | 1809 | | |
1808 | 1810 | | |
1809 | 1811 | | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
1810 | 1822 | | |
1811 | 1823 | | |
1812 | 1824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
972 | 985 | | |
973 | | - | |
| 986 | + | |
| 987 | + | |
974 | 988 | | |
975 | 989 | | |
976 | 990 | | |
977 | 991 | | |
978 | 992 | | |
979 | 993 | | |
980 | 994 | | |
981 | | - | |
| 995 | + | |
982 | 996 | | |
983 | 997 | | |
984 | 998 | | |
| |||
1077 | 1091 | | |
1078 | 1092 | | |
1079 | 1093 | | |
1080 | | - | |
| 1094 | + | |
| 1095 | + | |
1081 | 1096 | | |
1082 | 1097 | | |
1083 | 1098 | | |
| |||
1086 | 1101 | | |
1087 | 1102 | | |
1088 | 1103 | | |
1089 | | - | |
| 1104 | + | |
1090 | 1105 | | |
1091 | 1106 | | |
1092 | 1107 | | |
| |||
0 commit comments