Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Rejecting non-native endian BTF overlapped with the addition of support for it. The rest were more simple overlapping changes, except the renesas ravb binding update, which had to follow a file move as well as a YAML conversion. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <linux/rcupdate.h>
|
||||
#include <linux/once.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/sockptr.h>
|
||||
|
||||
#include <uapi/linux/net.h>
|
||||
@@ -289,6 +290,21 @@ do { \
|
||||
#define net_get_random_once_wait(buf, nbytes) \
|
||||
get_random_once_wait((buf), (nbytes))
|
||||
|
||||
/*
|
||||
* E.g. XFS meta- & log-data is in slab pages, or bcache meta
|
||||
* data pages, or other high order pages allocated by
|
||||
* __get_free_pages() without __GFP_COMP, which have a page_count
|
||||
* of 0 and/or have PageSlab() set. We cannot use send_page for
|
||||
* those, as that does get_page(); put_page(); and would cause
|
||||
* either a VM_BUG directly, or __page_cache_release a page that
|
||||
* would actually still be referenced by someone, leading to some
|
||||
* obscure delayed Oops somewhere else.
|
||||
*/
|
||||
static inline bool sendpage_ok(struct page *page)
|
||||
{
|
||||
return !PageSlab(page) && page_count(page) >= 1;
|
||||
}
|
||||
|
||||
int kernel_sendmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
|
||||
size_t num, size_t len);
|
||||
int kernel_sendmsg_locked(struct sock *sk, struct msghdr *msg,
|
||||
|
||||
Reference in New Issue
Block a user