Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39bb2cfb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm: vmscan: support equal reclaim for anon and file pages"

parents d8cdc792 5f5409c7
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -528,3 +528,12 @@ config ZSWAP
	  interactions don't cause any known issues on simple memory setups,
	  they have not be fully explored on the large set of potential
	  configurations and workloads that exist.

config BALANCE_ANON_FILE_RECLAIM
	bool "During reclaim treat anon and file backed pages equally"
	depends on SWAP
	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.
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
@@ -1794,7 +1794,8 @@ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc,
	 * There is enough inactive page cache, do not reclaim
	 * anything from the anonymous working set right now.
	 */
	if (!inactive_file_is_low(lruvec)) {
	if (!IS_ENABLED(CONFIG_BALANCE_ANON_FILE_RECLAIM) &&
			!inactive_file_is_low(lruvec)) {
		scan_balance = SCAN_FILE;
		goto out;
	}