lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 29 Jan 2021 18:30:51 -0800 From: Jakub Kicinski <kuba@...nel.org> To: Andrew Morton <akpm@...ux-foundation.org> Cc: Alexander Lobakin <alobakin@...me>, "David S. Miller" <davem@...emloft.net>, David Rientjes <rientjes@...gle.com>, Yisen Zhuang <yisen.zhuang@...wei.com>, Salil Mehta <salil.mehta@...wei.com>, Jesse Brandeburg <jesse.brandeburg@...el.com>, Tony Nguyen <anthony.l.nguyen@...el.com>, Saeed Mahameed <saeedm@...dia.com>, Leon Romanovsky <leon@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>, Jesper Dangaard Brouer <brouer@...hat.com>, Ilias Apalodimas <ilias.apalodimas@...aro.org>, Jonathan Lemon <jonathan.lemon@...il.com>, Willem de Bruijn <willemb@...gle.com>, Randy Dunlap <rdunlap@...radead.org>, Pablo Neira Ayuso <pablo@...filter.org>, Dexuan Cui <decui@...rosoft.com>, Jakub Sitnicki <jakub@...udflare.com>, Marco Elver <elver@...gle.com>, Paolo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org, linux-kernel@...r.kernel.org, intel-wired-lan@...ts.osuosl.org, linux-rdma@...r.kernel.org, linux-mm@...ck.org Subject: Re: [PATCH v2 net-next 1/4] mm: constify page_is_pfmemalloc() argument On Wed, 27 Jan 2021 20:11:01 +0000 Alexander Lobakin wrote: > The function only tests for page->index, so its argument should be > const. > > Signed-off-by: Alexander Lobakin <alobakin@...me> > --- > include/linux/mm.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/mm.h b/include/linux/mm.h > index ecdf8a8cd6ae..078633d43af9 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -1584,7 +1584,7 @@ struct address_space *page_mapping_file(struct page *page); > * ALLOC_NO_WATERMARKS and the low watermark was not > * met implying that the system is under some pressure. > */ > -static inline bool page_is_pfmemalloc(struct page *page) > +static inline bool page_is_pfmemalloc(const struct page *page) > { > /* > * Page index cannot be this large so this must be No objections for this going via net-next?
Powered by blists - more mailing lists