dm-bufio.c (d35a878ae1c50977b55e352fd46e36e35add72a0) dm-bufio.c (19809c2da28aee5860ad9a2eff760730a0710df0)
1/*
2 * Copyright (C) 2009-2011 Red Hat, Inc.
3 *
4 * Author: Mikulas Patocka <mpatocka@redhat.com>
5 *
6 * This file is released under the GPL.
7 */
8

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

401 * Consequently, we must set per-process flag PF_MEMALLOC_NOIO so that
402 * all allocations done by this process (including pagetables) are done
403 * as if GFP_NOIO was specified.
404 */
405
406 if (gfp_mask & __GFP_NORETRY)
407 noio_flag = memalloc_noio_save();
408
1/*
2 * Copyright (C) 2009-2011 Red Hat, Inc.
3 *
4 * Author: Mikulas Patocka <mpatocka@redhat.com>
5 *
6 * This file is released under the GPL.
7 */
8

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

401 * Consequently, we must set per-process flag PF_MEMALLOC_NOIO so that
402 * all allocations done by this process (including pagetables) are done
403 * as if GFP_NOIO was specified.
404 */
405
406 if (gfp_mask & __GFP_NORETRY)
407 noio_flag = memalloc_noio_save();
408
409 ptr = __vmalloc(c->block_size, gfp_mask | __GFP_HIGHMEM, PAGE_KERNEL);
409 ptr = __vmalloc(c->block_size, gfp_mask, PAGE_KERNEL);
410
411 if (gfp_mask & __GFP_NORETRY)
412 memalloc_noio_restore(noio_flag);
413
414 return ptr;
415}
416
417/*

--- 1561 unchanged lines hidden ---
410
411 if (gfp_mask & __GFP_NORETRY)
412 memalloc_noio_restore(noio_flag);
413
414 return ptr;
415}
416
417/*

--- 1561 unchanged lines hidden ---