Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1634879lqa; Mon, 29 Apr 2024 14:31:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4fR2nDOJBbmeKjk6qL3cIIMC/V6Pu3Y0hMEeLC3RR07SkYjfpza4jjyw2UuK2xvc/5+vjJbOpRBueqAzpk9VaqY8AgCg4XQ1k7FCQqw== X-Google-Smtp-Source: AGHT+IFbLTm12/oV03WmTEExtP1iKpQh9574lg3/IJhMsQFFtJ5h0aYPtrR0pGF3p/32bNlgzCL5 X-Received: by 2002:a17:902:ea08:b0:1e2:a61e:47fa with SMTP id s8-20020a170902ea0800b001e2a61e47famr1309525plg.15.1714426287555; Mon, 29 Apr 2024 14:31:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714426287; cv=pass; d=google.com; s=arc-20160816; b=kAMrb1qF0Y19+TQpnigjKLk+OFNNKNJ0G/FLr/9B/UUt2jb5+Ya3qSXyZ54TSZeuA2 sUyUVFnFgaMySIyHEkXFtk+0yGw8xYrHxPBg+zBxZUmtM3qC5gdxNnjeRE+sjEFkwIU4 nr7qy2ehm0Ufp1B38+knoJIZq6fP84wL4G/cwpsqw9I3Mhe1krEBfdah1BJX0+mb3tw4 ZRzBSC1qj4uM/ZgqGy/bRpVjoPPwZSsQsCrfp23lXjQqcYlGUgB5qiiw0xmAfFP+XOVq lNMRgJB4s8I9N1ghZQFgoxI/Mc0qFbeps/wG0mBiH4iEDHQ7E6oqY8GG9AG1UJ35zgSc luTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XElX0lvIknbzU1NDM+bexuVd/PeN5erbXNf5T0HVgR0=; fh=ffU070UHOvJeoHPcKNdikAUXZ9SpZ6Aj1J8i7MZN3ps=; b=aC45KLiBWTdD2Yx6DE00CkX+bvmol92jnhcEgjawaDD7yH7qfL5QIdTD9utikrLmUT DedDxzi+LV0xqNoZQCVyfH7dtCRe4uhAU/H6TQ6pfDb00bU4M/oN5NzanEnRpcVEa0nF Xd1Q7mppacIzenB7NmB4ro6PYme0b4hnNQYCjzUx0NyTwKESbg9+m1H2elbifouj1LB8 kS9yoatdBsIG3mcuBj3VTQb3DTbxVPCg125Tvrg9lEhwhDWGejUqxAgsl8LIE9yRogBL 2WpB2ndvf4qe8IsgNXMqCAaECLMg0Jn3/nsjYwzazf5V5EsnI5xGdlj7/MURYjvKSYT6 PxfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=kZEHtgTt; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-163015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163015-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z2-20020a170902834200b001e2bed03177si19657014pln.447.2024.04.29.14.31.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 14:31:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=kZEHtgTt; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-163015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163015-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 13CC2B21984 for ; Mon, 29 Apr 2024 20:27:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E36B21422A6; Mon, 29 Apr 2024 20:26:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="kZEHtgTt" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6F5283CB9; Mon, 29 Apr 2024 20:26:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714422410; cv=none; b=HSxkb5P64ilRcy+Scvm1afrOsemA5A3Or4P9sCiOaoh7vr/Wk6hlIoo/AhTMHSBUHxqbacsWA+dQrWjLxZor2kOmxtg9HCMHooY7Cyr+X5dLb6lmkEm0XP/iTQHvFbVq5+Ado7MEDjwELVbiGJjZlUZZeMUt1BfuYCnbPJkiIAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714422410; c=relaxed/simple; bh=mAgt/YGNnQ2kWH8WnqrHUEzvvNIHatYFh6dS/8cOIYw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aTFTS3jSil4jGNf6x1P12Pc6yhJefV9LiCGkmlfqP6uuozMkiUbq7aWWmBCWbsvyOlMV1O0OH43FjohW1ejOXUZW556mdmffzSOYgtWBQYN93L9g5W7ov8IMvy3VJ6MF58G4+/FhLbaC2AiTmAx+gon+KV72pBRc5lbcGFCzjXE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=kZEHtgTt; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=XElX0lvIknbzU1NDM+bexuVd/PeN5erbXNf5T0HVgR0=; b=kZEHtgTtATtVM7PAa6DPuem5Qs A1s2t7aJxmzFsYPCNADQLan2N8aOxgW6ra1ZK7K74lVVy0UUCQ5DqB/sIBFziUhBWjYmJ5XAm43e9 zrqfI5C0ONWscynumaTB5MOl7/zquJgdbtSwoSN8Zm1pVeNTorZsN1q1AZdzJMwWwA/TSRrYxw6hW KwpfxYh76/u3y0U4EzpeJHi78OPrk2R22ZFe4gnnJupQEdwPu7Fn1u8MEEviDBJiGmvULVTEdQS0l bZyLP5pI4ro16wfeBB2cJqkWzCIEy4nqiKrhaw1P3kP0yc+zHsV2abJMSxp6TLhiM9WvhV+1nd9Vp IzMWksWw==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1XZy-0000000DGF8-2VzG; Mon, 29 Apr 2024 20:26:26 +0000 Date: Mon, 29 Apr 2024 21:26:26 +0100 From: Matthew Wilcox To: Steven French Cc: Kairui Song , "linux-mm@kvack.org" , Andrew Morton , "Huang, Ying" , Chris Li , Barry Song , Ryan Roberts , Neil Brown , Minchan Kim , Hugh Dickins , David Hildenbrand , Yosry Ahmed , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Namjae Jeon , "Paulo Alcantara (SUSE)" , Shyam Prasad , Bharath S M Subject: Re: [EXTERNAL] [PATCH v3 05/12] cifs: drop usage of page_file_offset Message-ID: References: <20240429190500.30979-1-ryncsn@gmail.com> <20240429190500.30979-6-ryncsn@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Apr 29, 2024 at 08:19:31PM +0000, Steven French wrote: > Wouldn't this make it harder to fix the regression when swap file support was temporarily removed from cifs.ko (due to the folio migration)? I was hoping to come back to fixing swapfile support for cifs.ko in 6.10-rc (which used to pass the various xfstests for this but code got removed with folios/netfs changes). It was neither the folio conversion nor the netfs conversion which removed the claim of swap support from cifs, but NeilBrown's introduction of ->swap_rw. In commit e1209d3a7a67 he claims that Only two filesystems set SWP_FS_OPS: - cifs sets the flag, but ->direct_IO always fails so swap cannot work. - nfs sets the flag, but ->direct_IO calls generic_write_checks() which has failed on swap files for several releases. As I recall the xfstests only checked that swapon/swapoff works; they don't actually test that writing to swap and reading back from it work.