Re: [03/17] is_vmalloc_addr(): Check if an address is within the vmalloc boundaries

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Rientjes <rientjes@...>
Cc: Christoph Lameter <clameter@...>, Christoph Hellwig <hch@...>, Mel Gorman <mel@...>, <linux-fsdevel@...>, <linux-kernel@...>, David Chinner <dgc@...>, Jens Axboe <jens.axboe@...>
Date: Wednesday, September 19, 2007 - 3:24 am

On 19 Sep 2007, at 07:32, David Rientjes wrote:

That is incorrect.  This works perfectly on i386 and on ALL  
architectures supported by Linux.  A lot of places in the kernel  
already do this today (mostly hand coded though, eg XFS and NTFS)...

There even is such a function already in mm/ 
sparse.c::vaddr_in_vmalloc_area() with pretty identical content.  I  
would suggest either this new inline should go away completely and  
use the existing one and export it or the existing one should go away  
and the inline should be used.  It seems silly to have two functions  
with different names doing exactly the same thing!

Best regards,

	Anton
-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer, http://www.linux-ntfs.org/


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[03/17] is_vmalloc_addr(): Check if an address is within the..., Christoph Lameter, (Tue Sep 18, 11:36 pm)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Anton Altaparmakov, (Wed Sep 19, 3:24 am)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Christoph Lameter, (Wed Sep 19, 1:29 pm)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Anton Altaparmakov, (Wed Sep 19, 1:52 pm)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Anton Altaparmakov, (Wed Sep 19, 4:44 am)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Christoph Lameter, (Wed Sep 19, 1:29 pm)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Anton Altaparmakov, (Wed Sep 19, 1:52 pm)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Anton Altaparmakov, (Wed Sep 19, 9:23 am)