diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2018-02-15 21:49:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-17 00:04:16 +0300 |
commit | 6f89dbce8e1134458de8a8e376acaaca4eee602e (patch) | |
tree | 4db6ba33d7bd7bc250b69d86a864b57666bbc75a /include/linux | |
parent | ee99b2d8bf4ad6d03046a8c2f25bad7cfd9de64a (diff) | |
download | linux-6f89dbce8e1134458de8a8e376acaaca4eee602e.tar.xz |
skbuff: export mm_[un]account_pinned_pages for other modules
RDS would like to use the helper functions for managing pinned pages
added by Commit a91dbff551a6 ("sock: ulimit on MSG_ZEROCOPY pages")
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/skbuff.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 5ebc0f869720..b1cc38af53e1 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -466,6 +466,9 @@ struct ubuf_info { #define skb_uarg(SKB) ((struct ubuf_info *)(skb_shinfo(SKB)->destructor_arg)) +int mm_account_pinned_pages(struct mmpin *mmp, size_t size); +void mm_unaccount_pinned_pages(struct mmpin *mmp); + struct ubuf_info *sock_zerocopy_alloc(struct sock *sk, size_t size); struct ubuf_info *sock_zerocopy_realloc(struct sock *sk, size_t size, struct ubuf_info *uarg); |