From: Emin Ghuliev <eminusgh@gmail.com>
To: ysato@users.sourceforge.jp
Cc: dalias@libc.org, eminusgh@gmail.com,
linux-kernel@vger.kernel.org, willy@infradead.org,
linux-sh@vger.kernel.org
Subject: [PATCH] sh: use kmem_cache_zalloc instead of kmem_cache_alloc with GFP_ZERO flag
Date: Sat, 29 Aug 2020 18:38:38 +0000 [thread overview]
Message-ID: <20200829183838.10166-1-eminusgh@gmail.com> (raw)
use kmem_cache_zalloc function which does kmem_cache_alloc and zero out
instead of manually setting kmem_cache_alloc with GFP_ZERO flag.
Signed-off-by: Emin Ghuliev <eminusgh@gmail.com>
---
arch/sh/mm/pgtable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sh/mm/pgtable.c b/arch/sh/mm/pgtable.c
index cf7ce4b57359..6e17d921f5f5 100644
--- a/arch/sh/mm/pgtable.c
+++ b/arch/sh/mm/pgtable.c
@@ -47,7 +47,7 @@ void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd)
pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
{
- return kmem_cache_alloc(pmd_cachep, GFP_KERNEL | __GFP_ZERO);
+ return kmem_cache_zalloc(pmd_cachep, GFP_KERNEL);
}
void pmd_free(struct mm_struct *mm, pmd_t *pmd)
--
2.17.1
reply other threads:[~2020-08-29 18:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20200829183838.10166-1-eminusgh@gmail.com \
--to=eminusgh@gmail.com \
--cc=dalias@libc.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=willy@infradead.org \
--cc=ysato@users.sourceforge.jp \
/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
all inboxes | Powered by JetHome®