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/[email protected]
Fixes: c010d47 ("mm: thp: split huge page to any lower order pages")
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reported-by: Luis Chamberlain <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Luis Chamberlain <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>1 parent 48f044a commit 2a0774c
2 files changed
+32
-5
lines changed| 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