vmscan.c (5515061d22f0f9976ae7815864bfd22042d36848) vmscan.c (68243e76ee343d63c6cf76978588a885951e2818)
1/*
2 * linux/mm/vmscan.c
3 *
4 * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
5 *
6 * Swap reorganised 29.12.95, Stephen Tweedie.
7 * kswapd added: 7.1.96 sct
8 * Removed kswapd_ctl limits, and swap out as many pages as needed

--- 2153 unchanged lines hidden (view full) ---

2162 return;
2163
2164 /* Check if the pfmemalloc reserves are ok */
2165 first_zones_zonelist(zonelist, high_zoneidx, NULL, &zone);
2166 pgdat = zone->zone_pgdat;
2167 if (pfmemalloc_watermark_ok(pgdat))
2168 return;
2169
1/*
2 * linux/mm/vmscan.c
3 *
4 * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
5 *
6 * Swap reorganised 29.12.95, Stephen Tweedie.
7 * kswapd added: 7.1.96 sct
8 * Removed kswapd_ctl limits, and swap out as many pages as needed

--- 2153 unchanged lines hidden (view full) ---

2162 return;
2163
2164 /* Check if the pfmemalloc reserves are ok */
2165 first_zones_zonelist(zonelist, high_zoneidx, NULL, &zone);
2166 pgdat = zone->zone_pgdat;
2167 if (pfmemalloc_watermark_ok(pgdat))
2168 return;
2169
2170 /* Account for the throttling */
2171 count_vm_event(PGSCAN_DIRECT_THROTTLE);
2172
2170 /*
2171 * If the caller cannot enter the filesystem, it's possible that it
2172 * is due to the caller holding an FS lock or performing a journal
2173 * transaction in the case of a filesystem like ext[3|4]. In this case,
2174 * it is not safe to block on pfmemalloc_wait as kswapd could be
2175 * blocked waiting on the same lock. Instead, throttle for up to a
2176 * second before continuing.
2177 */

--- 1276 unchanged lines hidden ---
2173 /*
2174 * If the caller cannot enter the filesystem, it's possible that it
2175 * is due to the caller holding an FS lock or performing a journal
2176 * transaction in the case of a filesystem like ext[3|4]. In this case,
2177 * it is not safe to block on pfmemalloc_wait as kswapd could be
2178 * blocked waiting on the same lock. Instead, throttle for up to a
2179 * second before continuing.
2180 */

--- 1276 unchanged lines hidden ---