Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1062080iob; Thu, 28 Apr 2022 18:05:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvuSFNOVCH3gBwor0Z270MDQOgOS1bd1MR0HdBWr+bg9JY9brLvU/QBC63I8Yi1i2tw6De X-Received: by 2002:a05:6512:e8a:b0:46f:1e0:d0 with SMTP id bi10-20020a0565120e8a00b0046f01e000d0mr25753062lfb.91.1651194342686; Thu, 28 Apr 2022 18:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651194342; cv=none; d=google.com; s=arc-20160816; b=RSixQKPLIW07pGP4MhzOeUvSz6Nnm62z09A59jy4S87VCuaq4TpVygQ/4oruhelEoT XIle7nUE15Jg6L6MBqzFjB9ePjGfypmuTY9v2x/totMg1bUQDzfY86O8sLQ9qraT+lTX rhh4l9Bi5icm2uJh7FQe50s4ch+xL9hUVxcsaWSnw9IjMc9sxbvS90Bkv/h5Wfqw3qyr 5Jp2aPlBbEhEmto5a5jqcnIlcO4hlEBlGuZ5iTwbKENUbpDo9JatZfh761c9WCpgE5yY IpDcibZikieX+r7mMjccRien8J3o/gspKBHWdsTa3cqyLN4XToADzsCGOk26kVENhTh1 gb5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject:dkim-signature :dkim-signature; bh=BJfveXdsbtj8APvKzD0BIya71Qy3rY7o+Fk5zYeGnnQ=; b=cHdPbrIkSjtnH0mQ4o1n7xpwQU/73nghSc2eNLU6DgBYxYoWhcTLuXUcLoo0vwWeOJ Agg9Y2SOFbbo4B77FCyEq4PYrX8iJR+erPLoMq7ec8p68cpFIW29dRTw77XmnX1la4Cn rneisKvFf6jZXw2Isg7uWmIwWBCAXdwo8ZGfDXMUhkdaCS9ljTQKUXXtyjqgkaX2P3cF /wp9cKOm4S/hNND1srjlQexINXpP/ihDjUJGvnLg3sRreAw8rPA1+gVDXfbz2ikkhj81 9EPfewS8bKdk+NKRFpu7Wbpg3rJTQ3TDaoxrYt1mYOibd0SvvuVR/uFcjFRT1ufM6wKz FkAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=RyavaI8l; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=bzegBzIw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bq36-20020a056512152400b0046d0fa51667si6518832lfb.173.2022.04.28.18.05.16; Thu, 28 Apr 2022 18:05:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=RyavaI8l; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=bzegBzIw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352786AbiD2Ar5 (ORCPT + 99 others); Thu, 28 Apr 2022 20:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237629AbiD2Ar4 (ORCPT ); Thu, 28 Apr 2022 20:47:56 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BDF9BB906; Thu, 28 Apr 2022 17:44:39 -0700 (PDT) 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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