mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
rmap: drop support of non-linear mappings
We don't create non-linear mappings anymore. Let's drop code which handles them in rmap. Signed-off-by: Kirill A. Shutemov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1da4b35b00
commit
27ba0644ea
11 changed files with 18 additions and 300 deletions
|
|
@ -1140,10 +1140,8 @@ void __init swap_setup(void)
|
|||
|
||||
if (bdi_init(swapper_spaces[0].backing_dev_info))
|
||||
panic("Failed to init swap bdi");
|
||||
for (i = 0; i < MAX_SWAPFILES; i++) {
|
||||
for (i = 0; i < MAX_SWAPFILES; i++)
|
||||
spin_lock_init(&swapper_spaces[i].tree_lock);
|
||||
INIT_LIST_HEAD(&swapper_spaces[i].i_mmap_nonlinear);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Use a smaller cluster for small-memory machines */
|
||||
|
|
|
|||
Loading…
Reference in a new issue