memory-failure.c (a09ed5e00084448453c8bada4dcd31e5fbfc2f21) memory-failure.c (1495f230fa7750479c79e3656286b9183d662077)
1/*
2 * Copyright (C) 2008, 2009 Intel Corporation
3 * Authors: Andi Kleen, Fengguang Wu
4 *
5 * This software may be redistributed and/or modified under the terms of
6 * the GNU General Public License ("GPL") version 2 only as published by the
7 * Free Software Foundation.
8 *

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

236 * Only call shrink_slab here (which would also shrink other caches) if
237 * access is not potentially fatal.
238 */
239 if (access) {
240 int nr;
241 do {
242 struct shrink_control shrink = {
243 .gfp_mask = GFP_KERNEL,
1/*
2 * Copyright (C) 2008, 2009 Intel Corporation
3 * Authors: Andi Kleen, Fengguang Wu
4 *
5 * This software may be redistributed and/or modified under the terms of
6 * the GNU General Public License ("GPL") version 2 only as published by the
7 * Free Software Foundation.
8 *

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

236 * Only call shrink_slab here (which would also shrink other caches) if
237 * access is not potentially fatal.
238 */
239 if (access) {
240 int nr;
241 do {
242 struct shrink_control shrink = {
243 .gfp_mask = GFP_KERNEL,
244 .nr_scanned = 1000,
245 };
246
244 };
245
247 nr = shrink_slab(&shrink, 1000);
246 nr = shrink_slab(&shrink, 1000, 1000);
248 if (page_count(p) == 1)
249 break;
250 } while (nr > 10);
251 }
252}
253EXPORT_SYMBOL_GPL(shake_page);
254
255/*

--- 1240 unchanged lines hidden ---
247 if (page_count(p) == 1)
248 break;
249 } while (nr > 10);
250 }
251}
252EXPORT_SYMBOL_GPL(shake_page);
253
254/*

--- 1240 unchanged lines hidden ---