From patchwork Fri Apr 29 00:43:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: NeilBrown X-Patchwork-Id: 12831365 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 69DAAC433EF for ; Fri, 29 Apr 2022 00:44:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C1E6F6B0071; Thu, 28 Apr 2022 20:44:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BA69C6B0073; Thu, 28 Apr 2022 20:44:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9F9AA6B0074; Thu, 28 Apr 2022 20:44:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id 8AF196B0071 for ; Thu, 28 Apr 2022 20:44:40 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 5D68C60477 for ; Fri, 29 Apr 2022 00:44:40 +0000 (UTC) X-FDA: 79408071120.24.46A08BC Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf12.hostedemail.com (Postfix) with ESMTP id 1436F40059 for ; Fri, 29 Apr 2022 00:44:28 +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 250941F37F; Fri, 29 Apr 2022 00:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1651193078; 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=BJfveXdsbtj8APvKzD0BIya71Qy3rY7o+Fk5zYeGnnQ=; b=RyavaI8lgG76n7q0sPYbSMUMFc9luHJ3GA6SM7c0TWZlGtZJfjrus57ObJtQWEW7Bv73Sg fyh+SOo8/yrrSppAY1Z+3S+5hygF41/xIBLaTTGSnBLLnHjyeMm874G7/H9Csz7uHxeU59 ta+CuX3BPUhe+L5sqOx77OMWWHDDSr8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1651193078; 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=BJfveXdsbtj8APvKzD0BIya71Qy3rY7o+Fk5zYeGnnQ=; b=bzegBzIwDeKakEk4yow335y2vcO5jeRjuzj0Tu7ffed+VoRxFxNkVyOzo5VHpcdeHCgAoD ++UYDODtKON52PCg== 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 094D013491; Fri, 29 Apr 2022 00:44:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ty5kLvM0a2IjSgAAMHmgww (envelope-from ); Fri, 29 Apr 2022 00:44:35 +0000 Subject: [PATCH 0/2] Finalising swap-over-NFS patches From: NeilBrown To: Andrew Morton Cc: Geert Uytterhoeven , Christoph Hellwig , Miaohe Lin , linux-nfs@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Date: Fri, 29 Apr 2022 10:43:34 +1000 Message-ID: <165119280115.15698.2629172320052218921.stgit@noble.brown> User-Agent: StGit/1.5 MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 1436F40059 X-Stat-Signature: deur4dt3cnnwmzk3pbioqb3fuxtrteb6 X-Rspam-User: Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=RyavaI8l; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=bzegBzIw; spf=pass (imf12.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: 1651193068-364603 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, Two patches for current -mm branch. First fixes an omission pointed out by Miaohe Lin. Huge pages weren't handled correctly. Second changes NFS to use the new ->swap_rw With this, swap over NFS largely works again. I think there is a little more work to do in NFS/SUNRPC code to make allocations on the swap out path behave optimally. Any such changes can go through the NFS tree. Thanks, NeilBrown --- NeilBrown (2): MM: handle THP in swap_*page_fs() NFS: rename nfs_direct_IO and use as ->swap_rw fs/nfs/direct.c | 23 ++++++++++------------- fs/nfs/file.c | 5 +---- include/linux/nfs_fs.h | 2 +- mm/page_io.c | 23 +++++++++++++---------- 4 files changed, 25 insertions(+), 28 deletions(-) -- Signature