is_vmalloc_addr(): Check if an address is within the vmalloc boundaries
Checking if an address is a vmalloc address is done in a couple of places. Define a common version in mm.h and replace the other checks. Again the include structures suck. The definition of VMALLOC_START and VMALLOC_END is not available in vmalloc.h since highmem.c cannot be included there. Signed-off-by:Christoph Lameter <clameter@sgi.com> Cc: Nick Piggin <nickpiggin@yahoo.com.au> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- drivers/net/cxgb3/cxgb3_offload.c 1 addition, 3 deletionsdrivers/net/cxgb3/cxgb3_offload.c
- fs/ntfs/malloc.h 1 addition, 2 deletionsfs/ntfs/malloc.h
- fs/proc/kcore.c 1 addition, 1 deletionfs/proc/kcore.c
- fs/xfs/linux-2.6/kmem.c 1 addition, 2 deletionsfs/xfs/linux-2.6/kmem.c
- fs/xfs/linux-2.6/xfs_buf.c 1 addition, 2 deletionsfs/xfs/linux-2.6/xfs_buf.c
- include/linux/mm.h 8 additions, 0 deletionsinclude/linux/mm.h
- mm/sparse.c 1 addition, 9 deletionsmm/sparse.c
Loading
Please register or sign in to comment