From patchwork Sun Mar 6 23:49:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: NeilBrown X-Patchwork-Id: 12771017 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14FDBC433FE for ; Sun, 6 Mar 2022 23:50:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4E2668D0002; Sun, 6 Mar 2022 18:50:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 492E48D0001; Sun, 6 Mar 2022 18:50:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 331658D0002; Sun, 6 Mar 2022 18:50:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id 20EA88D0001 for ; Sun, 6 Mar 2022 18:50:13 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id EA6ED22B97 for ; Sun, 6 Mar 2022 23:50:12 +0000 (UTC) X-FDA: 79215607464.07.7AD646B Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf02.hostedemail.com (Postfix) with ESMTP id 412778000E for ; Sun, 6 Mar 2022 23:50:12 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6DBD11F38E; Sun, 6 Mar 2022 23:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646610610; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B5TF9OjBYnAvE9aH5SLQp8lDT5DoHM72C74T7yiurcA=; b=UrTWS9yX+p9XW7I8btQShNBxnfOKbcGpJeq+bgYsDqam1Gerz+p/wzaDqtyRayoNwlGQMK YMb0qXlrV/Gu5ljlt7G0oxOtNuEbvkl7Pbfy2ZedzovSmpQ49DiZGfQ5BtMPaNfrEHCb1t dZ8FuvnxUvI7CzkPWPJPL27mK02DFZA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646610610; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B5TF9OjBYnAvE9aH5SLQp8lDT5DoHM72C74T7yiurcA=; b=FtqjrEGiYRJ+tJHuysqbTXlAReKwNZ+5CZmn40Se1LP0vA/eUY+MLbTHOHnK4U7LOp7gTj q8G35DFLTOwL23Aw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8E3E1134CD; Sun, 6 Mar 2022 23:50:08 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id te+YErBIJWIIWgAAMHmgww (envelope-from ); Sun, 06 Mar 2022 23:50:08 +0000 Subject: [PATCH 00/10] MM changes to improve swap-over-NFS support From: NeilBrown To: Andrew Morton Cc: Christoph Hellwig , David Howells , linux-nfs@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Date: Mon, 07 Mar 2022 10:49:38 +1100 Message-ID: <164661047081.13454.11679636335222534920.stgit@noble.brown> User-Agent: StGit/0.23 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 412778000E X-Stat-Signature: dpuxi19c569tawfu3x93ycose9pm778k Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=UrTWS9yX; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=FtqjrEGi; spf=pass (imf02.hostedemail.com: domain of neilb@suse.de designates 195.135.220.29 as permitted sender) smtp.mailfrom=neilb@suse.de; dmarc=pass (policy=none) header.from=suse.de X-HE-Tag: 1646610612-623631 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Andrew, these are the non-NFS-specific parts of the swap-over-NFS series that I've posted a few times. I've address all comments, most recently style improvements in mm/swap.h. Would it be possible for these to land in the next merge window? Thanks, NeilBrown --- NeilBrown (10): MM: create new mm/swap.h header file. MM: drop swap_set_page_dirty MM: move responsibility for setting SWP_FS_OPS to ->swap_activate MM: reclaim mustn't enter FS for SWP_FS_OPS swap-space MM: introduce ->swap_rw and use it for reads from SWP_FS_OPS swap-space MM: perform async writes to SWP_FS_OPS swap-space using ->swap_rw DOC: update documentation for swap_activate and swap_rw MM: submit multipage reads for SWP_FS_OPS swap-space MM: submit multipage write for SWP_FS_OPS swap-space VFS: Add FMODE_CAN_ODIRECT file flag Documentation/filesystems/locking.rst | 18 +- Documentation/filesystems/vfs.rst | 17 +- drivers/block/loop.c | 4 +- fs/cifs/file.c | 7 +- fs/fcntl.c | 9 +- fs/nfs/file.c | 20 ++- fs/open.c | 9 +- fs/overlayfs/file.c | 13 +- include/linux/fs.h | 4 + include/linux/swap.h | 7 +- include/linux/writeback.h | 7 + mm/madvise.c | 8 +- mm/memory.c | 2 +- mm/page_io.c | 244 ++++++++++++++++++++------ mm/swap.h | 30 +++- mm/swap_state.c | 22 ++- mm/swapfile.c | 13 +- mm/vmscan.c | 38 ++-- 18 files changed, 347 insertions(+), 125 deletions(-) -- Signature