[PATCH 0/5] mm: A few cleanup patches around zap, shmem and uffd

From: Peter Xu
Date: Wed Sep 01 2021 - 16:56:32 EST


[Based on tag v5.14, but it should still apply to -mm too. If not, I can
repost anytime]

I picked up these patches from uffd-wp v5 series here:

https://lore.kernel.org/lkml/20210715201422.211004-1-peterx@xxxxxxxxxx/

IMHO all of them are very nice cleanups to existing code already, they're all
small and self-contained. They'll be needed by uffd-wp coming series. I would
appreciate if they can be accepted earlier, so as to not carry them over always
with the uffd-wp series.

I removed some CC from the uffd-wp v5 series to reduce the noise, and added a
few more into it.

Reviews are greatly welcomed, thanks.

Peter Xu (5):
mm/shmem: Unconditionally set pte dirty in mfill_atomic_install_pte
mm: Clear vmf->pte after pte_unmap_same() returns
mm: Drop first_index/last_index in zap_details
mm: Introduce zap_details.zap_flags
mm: Introduce ZAP_FLAG_SKIP_SWAP

include/linux/mm.h | 33 +++++++++++++++++--
mm/memory.c | 82 +++++++++++++++++++++-------------------------
mm/shmem.c | 1 -
mm/userfaultfd.c | 3 +-
4 files changed, 68 insertions(+), 51 deletions(-)

--
2.31.1