kmem.c (c95baf12f5077419db01313ab61c2aac007d40cd) | kmem.c (88dca4ca5a93d2c09e5bbc6a62fbfc3af83c4fca) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#include "xfs.h" 7#include <linux/backing-dev.h> 8#include "xfs_message.h" --- 34 unchanged lines hidden (view full) --- 43{ 44 unsigned nofs_flag = 0; 45 void *ptr; 46 gfp_t lflags = kmem_flags_convert(flags); 47 48 if (flags & KM_NOFS) 49 nofs_flag = memalloc_nofs_save(); 50 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#include "xfs.h" 7#include <linux/backing-dev.h> 8#include "xfs_message.h" --- 34 unchanged lines hidden (view full) --- 43{ 44 unsigned nofs_flag = 0; 45 void *ptr; 46 gfp_t lflags = kmem_flags_convert(flags); 47 48 if (flags & KM_NOFS) 49 nofs_flag = memalloc_nofs_save(); 50 |
51 ptr = __vmalloc(size, lflags, PAGE_KERNEL); | 51 ptr = __vmalloc(size, lflags); |
52 53 if (flags & KM_NOFS) 54 memalloc_nofs_restore(nofs_flag); 55 56 return ptr; 57} 58 59/* --- 79 unchanged lines hidden --- | 52 53 if (flags & KM_NOFS) 54 memalloc_nofs_restore(nofs_flag); 55 56 return ptr; 57} 58 59/* --- 79 unchanged lines hidden --- |