From: Yunsheng Lin <linyunsheng@huawei.com>
To: <davem@davemloft.net>, <kuba@kernel.org>, <pabeni@redhat.com>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Alexander Duyck <alexander.duyck@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>, <linux-mm@kvack.org>
Subject: Re: [PATCH net-next v5 10/13] mm: page_frag: introduce prepare/probe/commit API
Date: Thu, 30 May 2024 17:21:45 +0800 [thread overview]
Message-ID: <ea2be92c-88cc-79fe-f21f-9c80f2b02ca0@huawei.com> (raw)
In-Reply-To: <20240528125604.63048-11-linyunsheng@huawei.com>
On 2024/5/28 20:56, Yunsheng Lin wrote:
> +#define page_frag_alloc_probe(nc, offset, fragsz, va) \
> +({ \
> + struct page *__page = NULL; \
> + \
> + VM_BUG_ON(!*(fragsz)); \
The above above marco seems to need to include mmdebug.h explicitly
to avoid compile error for x86 system.
> + if (likely((nc)->remaining >= *(fragsz))) \
> + __page = virt_to_page(__page_frag_alloc_probe(nc, \
> + offset, \
> + fragsz, \
> + va)); \
> + \
> + __page; \
> +})
next prev parent reply other threads:[~2024-05-30 9:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240528125604.63048-1-linyunsheng@huawei.com>
2024-05-28 12:55 ` [PATCH net-next v5 01/13] mm: page_frag: add a test module for page_frag Yunsheng Lin
2024-05-30 0:29 ` Jakub Kicinski
2024-05-30 9:17 ` Yunsheng Lin
2024-05-30 15:16 ` Jakub Kicinski
2024-05-31 8:50 ` Yunsheng Lin
2024-05-28 12:55 ` [PATCH net-next v5 03/13] mm: page_frag: use free_unref_page() to free page fragment Yunsheng Lin
2024-05-28 12:55 ` [PATCH net-next v5 04/13] mm: move the page fragment allocator from page_alloc into its own file Yunsheng Lin
2024-05-28 12:55 ` [PATCH net-next v5 05/13] mm: page_frag: use initial zero offset for page_frag_alloc_align() Yunsheng Lin
2024-05-28 12:55 ` [PATCH net-next v5 06/13] mm: page_frag: add '_va' suffix to page_frag API Yunsheng Lin
2024-05-28 12:55 ` [PATCH net-next v5 07/13] mm: page_frag: avoid caller accessing 'page_frag_cache' directly Yunsheng Lin
2024-05-28 12:55 ` [PATCH net-next v5 08/13] mm: page_frag: reuse existing space for 'size' and 'pfmemalloc' Yunsheng Lin
2024-05-28 12:56 ` [PATCH net-next v5 10/13] mm: page_frag: introduce prepare/probe/commit API Yunsheng Lin
2024-05-30 9:21 ` Yunsheng Lin [this message]
2024-05-28 12:56 ` [PATCH net-next v5 12/13] mm: page_frag: update documentation for page_frag Yunsheng Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ea2be92c-88cc-79fe-f21f-9c80f2b02ca0@huawei.com \
--to=linyunsheng@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=alexander.duyck@gmail.com \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox