Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1995534ybc; Wed, 13 Nov 2019 07:28:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxqgnigkV5FuTy3D4cT1Px0hj6JrUE87Oq2KRAO63dO2jyRLjnwr3fPn1DEoNloJ5g3mfod X-Received: by 2002:a17:906:a3cc:: with SMTP id ca12mr3357883ejb.302.1573658923535; Wed, 13 Nov 2019 07:28:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573658923; cv=none; d=google.com; s=arc-20160816; b=fCXleACrjvJDBIVeSu4gTITUr9Zk2H1PX/R1wj3p/vwcmimaroYByINKppPFwY/KWN LAHlD/m3rCyNSfLwv7DSmPfKm/JdIGEf5pQQjAotzBWjNcHX7BvZel56LaQX34Jn+X8x lrMU+r+8s//fhuyzrBLYezSZEZoC0BVQGi3tJfTvMQuaV+LfaHF5Y9RJPUMsZ8FhGedy EMys9u4fUcA8JpPtyOREIku0VnTyXfkrE91VGIDsekViz+256/5Xl0+qYKW+jYL+heKm +S0On37Z31jyQqTpIeZ8dSjfXU3WhUJJogMyj8V0pWs6Z2oGY31TXXMcQC2rGON2WW01 z6Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=DwCmMvHq7M7Q9dJLkPH27Y7MJUmTVB6KJ+HTScspDIs=; b=fI3eIhJ3RAz82L5teBxkHiLi3LDF1r5pWLezD0wXM38h0h0d58KrdELQfrQus6B5do MvQKlN69kGO4fH3gk4/dd1ODPcEkbKhrOjg+9YVagjx85Ieo0YKqSlr+62PRdMm0xDWR 9ePLQDgUubzMmIzbnAGPnHzkRhjYgkriuFeNUuvxNUPA0wj+EdYH3zWUULsvYmugPHg0 YJWb4NeG40KLH86tZdLbgj1qJyhVe/j7fS3UOs8LkVceG6J8YNgn7FbrQhRkjaCHcxkl btq/ohorLKpqUmck7oPKQtelFDBMZcqto2Fmfyijo5s29N0caAa1Sv0KID9HMkcHa921 o1Ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si1586096edx.182.2019.11.13.07.28.06; Wed, 13 Nov 2019 07:28:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728035AbfKMPZY (ORCPT + 99 others); Wed, 13 Nov 2019 10:25:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:53214 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727721AbfKMPZY (ORCPT ); Wed, 13 Nov 2019 10:25:24 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8A799B483; Wed, 13 Nov 2019 15:25:21 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 966E7DA7E8; Wed, 13 Nov 2019 16:25:22 +0100 (CET) Date: Wed, 13 Nov 2019 16:25:22 +0100 From: David Sterba To: ira.weiny@intel.com Cc: Alexander Viro , Andrew Morton , Chris Mason , Josef Bacik , David Sterba , Jaegeuk Kim , Chao Yu , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Trond Myklebust , Anna Schumaker , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-nfs@vger.kernel.org, linux-mm@kvack.org, Dave Chinner , Jan Kara Subject: Re: [PATCH V2 2/2] fs: Move swap_[de]activate to file_operations Message-ID: <20191113152522.GF3001@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, ira.weiny@intel.com, Alexander Viro , Andrew Morton , Chris Mason , Josef Bacik , David Sterba , Jaegeuk Kim , Chao Yu , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Trond Myklebust , Anna Schumaker , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-nfs@vger.kernel.org, linux-mm@kvack.org, Dave Chinner , Jan Kara References: <20191113004244.9981-1-ira.weiny@intel.com> <20191113004244.9981-3-ira.weiny@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191113004244.9981-3-ira.weiny@intel.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Nov 12, 2019 at 04:42:44PM -0800, ira.weiny@intel.com wrote: > From: Ira Weiny > > swap_activate() and swap_deactivate() have nothing to do with address > spaces. We want to be able to change the address space operations on > the fly to allow changing inode flags dynamically. > > Switching address space operations can be difficult to do reliably.[1] > Therefore, to simplify switching address space operations we reduce the > number of functions in those operations by moving swap_activate() and > swap_deactivate() out of the address space operations. > > No functionality is changed with this patch. > > This has been tested with XFS but not NFS, f2fs, or btrfs. > > Also note we move some functions to facilitate compilation. But there > are no functional changes are contained within those diffs. > > [1] https://lkml.org/lkml/2019/11/11/572 > > Cc: Dave Chinner > Cc: linux-fsdevel@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Suggested-by: Jan Kara > Signed-off-by: Ira Weiny > > --- > Changes from V0: > Update cover letter. > fix btrfs as per Andrew's comments > change xfs_iomap_swapfile_activate() to xfs_file_swap_activate() > > Changes from V1: > Update recipients list > > > fs/btrfs/file.c | 341 +++++++++++++++++++++++++++++++++++++++++++++ > fs/btrfs/inode.c | 340 -------------------------------------------- For the btrfs part Acked-by: David Sterba There's going to be a minor conflict with current 5.5 queue, the resolution is simple rename of btrfs_block_group_cache to btrfs_block_group.