[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ea2be92c-88cc-79fe-f21f-9c80f2b02ca0@huawei.com>
Date: Thu, 30 May 2024 17:21:45 +0800
From: Yunsheng Lin <linyunsheng@...wei.com>
To: <davem@...emloft.net>, <kuba@...nel.org>, <pabeni@...hat.com>
CC: <netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>, Alexander Duyck
<alexander.duyck@...il.com>, Andrew Morton <akpm@...ux-foundation.org>,
<linux-mm@...ck.org>
Subject: Re: [PATCH net-next v5 10/13] mm: page_frag: introduce
prepare/probe/commit API
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; \
> +})
Powered by blists - more mailing lists