]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: cleanup flags usage in faultin_page
authorJosef Bacik <josef@toxicpanda.com>
Thu, 18 Jul 2024 21:26:06 +0000 (17:26 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:25 +0000 (17:52 -0700)
commitfd6e3cbe85c13536daf466e323bf9c72e0e83505
treed6d141c8c8e89295f4b09ce33e8a77d656acca20
parentc933d04714afa98486c7466b5457c053abc0082e
mm: cleanup flags usage in faultin_page

Patch series "mm: some small page fault cleanups".

I was recently wreaking havoc in the page fault code and I noticed some
things that could be cleaned up.  We no longer modify the gup flags in
faultin_page, so we can clean up how we pass the flags in and remove the
extra variable in __get_user_pages.

This patch (of 2):

We're passing a pointer to the foll_flags for faultin_page, however we
never modify the flags in this call.  Change this to just take the flags
value instead.

Link: https://lkml.kernel.org/r/2df51a54c06bdf93e1cb09a19a9ef1df6557b59e.1721337845.git.josef@toxicpanda.com
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/gup.c