diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2024-02-28 10:30:08 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-03-05 11:38:14 +0100 |
commit | 411c5f36805c02c7c412f1ad6bfa4459a1148011 (patch) | |
tree | a679d4f591c166c80f85b2cb2186c6924e4d3ac3 /drivers/vhost | |
parent | net: txgbe: fix to clear interrupt status after handling IRQ (diff) | |
download | linux-411c5f36805c02c7c412f1ad6bfa4459a1148011.tar.xz linux-411c5f36805c02c7c412f1ad6bfa4459a1148011.zip |
mm/page_alloc: modify page_frag_alloc_align() to accept align as an argument
napi_alloc_frag_align() and netdev_alloc_frag_align() accept
align as an argument, and they are thin wrappers around the
__napi_alloc_frag_align() and __netdev_alloc_frag_align() APIs
doing the alignment checking and align mask conversion, in order
to call page_frag_alloc_align() directly. The intention here is
to keep the alignment checking and the alignmask conversion in
in-line wrapper to avoid those kind of operations during execution
time since it can usually be handled during compile time.
We are going to use page_frag_alloc_align() in vhost_net.c, it
need the same kind of alignment checking and alignmask conversion,
so split up page_frag_alloc_align into an inline wrapper doing the
above operation, and add __page_frag_alloc_align() which is passed
with the align mask the original function expected as suggested by
Alexander.
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
CC: Alexander Duyck <alexander.duyck@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/vhost')
0 files changed, 0 insertions, 0 deletions