mm: patial update from N770F_13
This commit is contained in:
parent
b4a201570f
commit
d3770fe141
4 changed files with 28 additions and 13 deletions
21
mm/Kconfig
21
mm/Kconfig
|
@ -673,16 +673,6 @@ config FIX_INACTIVE_RATIO
|
|||
bool "Fix active:inactive anon ratio to 1:1"
|
||||
default y
|
||||
|
||||
config SWAP_ENABLE_READAHEAD
|
||||
bool "Enable readahead on page swap in"
|
||||
depends on SWAP
|
||||
default y
|
||||
help
|
||||
When a page fault occurs, adjacent pages of SWAP_CLUSTER_MAX are
|
||||
also paged in expecting those pages will be used in near future.
|
||||
This behaviour is good at disk-based system, but not on in-memory
|
||||
compression (e.g. zram).
|
||||
|
||||
config GENERIC_EARLY_IOREMAP
|
||||
bool
|
||||
|
||||
|
@ -784,12 +774,23 @@ config MAX_DIRTY_THRESH_PAGES
|
|||
config BALANCE_ANON_FILE_RECLAIM
|
||||
bool "During reclaim treat anon and file backed pages equally"
|
||||
depends on SWAP
|
||||
default y
|
||||
help
|
||||
When performing memory reclaim treat anonymous and file backed pages
|
||||
equally.
|
||||
Swapping anonymous pages out to memory can be efficient enough to justify
|
||||
treating anonymous and file backed pages equally.
|
||||
|
||||
config SWAP_ENABLE_READAHEAD
|
||||
bool "Enable readahead on page swap in"
|
||||
depends on SWAP
|
||||
default y
|
||||
help
|
||||
When a page fault occurs, adjacent pages of SWAP_CLUSTER_MAX are
|
||||
also paged in expecting those pages will be used in near future.
|
||||
This behaviour is good at disk-based system, but not on in-memory
|
||||
compression (e.g. zram).
|
||||
|
||||
config MMAP_READAROUND_LIMIT
|
||||
int "Limit mmap readaround upperbound"
|
||||
default 0
|
||||
|
|
|
@ -103,3 +103,11 @@ obj-$(CONFIG_FRAME_VECTOR) += frame_vector.o
|
|||
obj-$(CONFIG_DEBUG_PAGE_REF) += debug_page_ref.o
|
||||
obj-$(CONFIG_HARDENED_USERCOPY) += usercopy.o
|
||||
obj-$(CONFIG_PAGE_BOOST_RECORDING) += io_record.o
|
||||
|
||||
# [IOPP-Wformat-v1.0.4.14.patch]
|
||||
# check calls to printf and scanf, etc.,
|
||||
# to make sure that the arguments supplied have types appropriate to the format string specified,
|
||||
# and that the conversions specified in the format string make sense.
|
||||
CFLAGS_backing-dev.o = -Wformat
|
||||
CFLAGS_page-writeback.o = -Wformat
|
||||
|
||||
|
|
10
mm/memory.c
10
mm/memory.c
|
@ -1123,6 +1123,9 @@ again:
|
|||
continue;
|
||||
}
|
||||
|
||||
if (need_resched())
|
||||
break;
|
||||
|
||||
if (pte_present(ptent)) {
|
||||
struct page *page;
|
||||
|
||||
|
@ -1210,8 +1213,11 @@ again:
|
|||
__tlb_remove_pte_page(tlb, pending_page);
|
||||
pending_page = NULL;
|
||||
}
|
||||
if (addr != end)
|
||||
goto again;
|
||||
}
|
||||
|
||||
if (addr != end) {
|
||||
cond_resched();
|
||||
goto again;
|
||||
}
|
||||
|
||||
return addr;
|
||||
|
|
|
@ -1810,7 +1810,7 @@ pause:
|
|||
pause,
|
||||
start_time);
|
||||
|
||||
/* IOPP-prevent_infinite_writeback-v1.0.4.4 */
|
||||
/* IOPP-prevent_infinite_writeback-v1.1.4.4 */
|
||||
/* Do not sleep if the backing device is removed */
|
||||
if (unlikely(!bdi->dev))
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue