Repository navigation
Commit 8b2e9b7
committed
Revert "mm: create a separate slab for page->ptl allocation"
This reverts commit ea1e7ed.
Al points out that while the commit *does* actually create a separate
slab for the page->ptl allocation, that slab is never actually used, and
the code continues to use kmalloc/kfree.
Damien Wyart points out that the original patch did have the conversion
to use kmem_cache_alloc/free, so it got lost somewhere on its way to me.
Revert the half-arsed attempt that didn't do anything. If we really do
want the special slab (remember: this is all relevant just for debug
builds, so it's not necessarily all that critical) we might as well redo
the patch fully.
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Kirill A Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent b5898cd commit 8b2e9b7
3 files changed
Lines changed: 1 addition & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1318 | 1318 | | |
1319 | 1319 | | |
1320 | 1320 | | |
1321 | | - | |
1322 | 1321 | | |
1323 | 1322 | | |
1324 | 1323 | | |
| |||
1327 | 1326 | | |
1328 | 1327 | | |
1329 | 1328 | | |
1330 | | - | |
1331 | 1329 | | |
1332 | 1330 | | |
1333 | 1331 | | |
| |||
1380 | 1378 | | |
1381 | 1379 | | |
1382 | 1380 | | |
1383 | | - | |
1384 | 1381 | | |
1385 | 1382 | | |
1386 | 1383 | | |
1387 | 1384 | | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | 1385 | | |
1395 | 1386 | | |
1396 | 1387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
| 479 | + | |
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4272 | 4272 | | |
4273 | 4273 | | |
4274 | 4274 | | |
4275 | | - | |
4276 | | - | |
4277 | | - | |
4278 | | - | |
4279 | | - | |
4280 | | - | |
4281 | | - | |
4282 | 4275 | | |
4283 | 4276 | | |
4284 | 4277 | | |
| |||
0 commit comments