]> git.baikalelectronics.ru Git - kernel.git/commit
mm: add a "struct page_frag" type containing a page, offset and length
authorIan Campbell <ian.campbell@citrix.com>
Thu, 20 Oct 2011 08:58:32 +0000 (04:58 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Oct 2011 08:58:32 +0000 (04:58 -0400)
commita704da507b908013d862d1e4d1af17b473ea149e
tree18d0323ab3280f967fa294c0c6afc327573e2ed7
parentdde1406e4b8cb9d6816eedd3d1c2b5202912d019
mm: add a "struct page_frag" type containing a page, offset and length

A few network drivers currently use skb_frag_struct for this purpose but I have
patches which add additional fields and semantics there which these other uses
do not want.

A structure for reference sub-page regions seems like a generally useful thing
so do so instead of adding a network subsystem specific structure.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jens Axboe <jaxboe@fusionio.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mm_types.h