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>
Mon, 2 Sep 2024 03:25:46 +0000 (20:25 -0700)
commit478729533edaa6700ba681b7a71e43715ffe6ccb
treee7e9f4ca3ecf5845a174482fc698a023d6a98109
parentc39542732a3d84e851a0ab8ff3106ed3138174a0
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