kmem.c (dd23f273d9a765d7f092c1bb0d1cd7aaf668077e) | kmem.c (19809c2da28aee5860ad9a2eff760730a0710df0) |
---|---|
1/* 2 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 3 * All Rights Reserved. 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * --- 53 unchanged lines hidden (view full) --- 62 * here. Hence we need to tell memory reclaim that we are in such a 63 * context via PF_MEMALLOC_NOFS to prevent memory reclaim re-entering 64 * the filesystem here and potentially deadlocking. 65 */ 66 if (flags & KM_NOFS) 67 nofs_flag = memalloc_nofs_save(); 68 69 lflags = kmem_flags_convert(flags); | 1/* 2 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 3 * All Rights Reserved. 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * --- 53 unchanged lines hidden (view full) --- 62 * here. Hence we need to tell memory reclaim that we are in such a 63 * context via PF_MEMALLOC_NOFS to prevent memory reclaim re-entering 64 * the filesystem here and potentially deadlocking. 65 */ 66 if (flags & KM_NOFS) 67 nofs_flag = memalloc_nofs_save(); 68 69 lflags = kmem_flags_convert(flags); |
70 ptr = __vmalloc(size, lflags | __GFP_HIGHMEM | __GFP_ZERO, PAGE_KERNEL); | 70 ptr = __vmalloc(size, lflags | __GFP_ZERO, PAGE_KERNEL); |
71 72 if (flags & KM_NOFS) 73 memalloc_nofs_restore(nofs_flag); 74 75 return ptr; 76} 77 78void * --- 38 unchanged lines hidden --- | 71 72 if (flags & KM_NOFS) 73 memalloc_nofs_restore(nofs_flag); 74 75 return ptr; 76} 77 78void * --- 38 unchanged lines hidden --- |