aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vhost/net.c
diff options
context:
space:
mode:
authorYunsheng Lin <[email protected]>2024-10-28 11:53:39 +0000
committerJakub Kicinski <[email protected]>2024-11-11 18:56:27 +0000
commit3d18dfe69ce46f106af327736d2261d7e3ee81c0 (patch)
tree508012ac2ca4270f28b0eee0cceed9959c589dfd /drivers/vhost/net.c
parentmm: page_frag: use initial zero offset for page_frag_alloc_align() (diff)
downloadkernel-3d18dfe69ce46f106af327736d2261d7e3ee81c0.tar.gz
kernel-3d18dfe69ce46f106af327736d2261d7e3ee81c0.zip
mm: page_frag: avoid caller accessing 'page_frag_cache' directly
Use appropriate frag_page API instead of caller accessing 'page_frag_cache' directly. CC: Andrew Morton <[email protected]> CC: Linux-MM <[email protected]> Signed-off-by: Yunsheng Lin <[email protected]> Reviewed-by: Alexander Duyck <[email protected]> Acked-by: Chuck Lever <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/vhost/net.c')
-rw-r--r--drivers/vhost/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index f16279351db5..9ad37c012189 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -1325,7 +1325,7 @@ static int vhost_net_open(struct inode *inode, struct file *f)
vqs[VHOST_NET_VQ_RX]);
f->private_data = n;
- n->pf_cache.va = NULL;
+ page_frag_cache_init(&n->pf_cache);
return 0;
}