]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: create new mm/swap.h header file.
authorNeilBrown <neilb@suse.de>
Thu, 14 Apr 2022 06:07:01 +0000 (23:07 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 14 Apr 2022 06:07:01 +0000 (23:07 -0700)
commit52c7742f9f9ca7c8338c2ff38b5fd0b8a1316b07
treec75843bcce2f7058cae787dba082ff2d932733bd
parentb73c2502b64bca619af4571a36835a2d696e0ebf
mm: create new mm/swap.h header file.

Patch series "MM changes to improve swap-over-NFS support".

Assorted improvements for swap-via-filesystem.

This is a resend of these patches, rebased on current HEAD.  The only
substantial changes is that swap_dirty_folio has replaced
swap_set_page_dirty.

Currently swap-via-fs (SWP_FS_OPS) doesn't work for any filesystem.  It
has previously worked for NFS but that broke a few releases back.  This
series changes to use a new ->swap_rw rather than ->readpage and
->direct_IO.  It also makes other improvements.

There is a companion series already in linux-next which fixes various
issues with NFS.  Once both series land, a final patch is needed which
changes NFS over to use ->swap_rw.

This patch (of 10):

Many functions declared in include/linux/swap.h are only used within mm/

Create a new "mm/swap.h" and move some of these declarations there.
Remove the redundant 'extern' from the function declarations.

Link: https://lkml.kernel.org/r/164859751830.29473.5309689752169286816.stgit@noble.brown
Link: https://lkml.kernel.org/r/164859778120.29473.11725907882296224053.stgit@noble.brown
Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: David Howells <dhowells@redhat.com>
Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
15 files changed:
include/linux/swap.h
mm/huge_memory.c
mm/madvise.c
mm/memcontrol.c
mm/memory.c
mm/mincore.c
mm/page_alloc.c
mm/page_io.c
mm/shmem.c
mm/swap.h [new file with mode: 0644]
mm/swap_state.c
mm/swapfile.c
mm/util.c
mm/vmscan.c
mm/zswap.c