Re: [PATCH 2/9] mm: Provide new get_vaddr_frames() helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/01/2015 02:40 PM, Jan Kara wrote:
> On Thu 28-05-15 16:24:02, Andrew Morton wrote:
>> On Wed, 13 May 2015 15:08:08 +0200 Jan Kara <jack@xxxxxxx> wrote:
>>
>>> Provide new function get_vaddr_frames().  This function maps virtual
>>> addresses from given start and fills given array with page frame numbers of
>>> the corresponding pages. If given start belongs to a normal vma, the function
>>> grabs reference to each of the pages to pin them in memory. If start
>>> belongs to VM_IO | VM_PFNMAP vma, we don't touch page structures. Caller
>>> must make sure pfns aren't reused for anything else while he is using
>>> them.
>>>
>>> This function is created for various drivers to simplify handling of
>>> their buffers.
>>>
>>> Acked-by: Mel Gorman <mgorman@xxxxxxx>
>>> Acked-by: Vlastimil Babka <vbabka@xxxxxxx>
>>> Signed-off-by: Jan Kara <jack@xxxxxxx>
>>> ---
>>>  include/linux/mm.h |  44 +++++++++++
>>>  mm/gup.c           | 226 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>>
>> That's a lump of new code which many kernels won't be needing.  Can we
>> put all this in a new .c file and select it within drivers/media
>> Kconfig?
>   Yeah, makes sense. I'll write a patch. Hans, is it OK with you if I
> just create a patch on top of the series you have in your tree?

No problem.

Regards,

	Hans

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]