From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 150E0C17440 for ; Tue, 12 Nov 2019 17:05:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D727F20679 for ; Tue, 12 Nov 2019 17:05:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D727F20679 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6B2806B000A; Tue, 12 Nov 2019 12:05:32 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 664506B000E; Tue, 12 Nov 2019 12:05:32 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 57A446B0010; Tue, 12 Nov 2019 12:05:32 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0139.hostedemail.com [216.40.44.139]) by kanga.kvack.org (Postfix) with ESMTP id 46A936B000A for ; Tue, 12 Nov 2019 12:05:32 -0500 (EST) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with SMTP id 038E240DD for ; Tue, 12 Nov 2019 17:05:32 +0000 (UTC) X-FDA: 76148251704.17.snail80_302d80d2a6a16 X-HE-Tag: snail80_302d80d2a6a16 X-Filterd-Recvd-Size: 4609 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by imf14.hostedemail.com (Postfix) with ESMTP for ; Tue, 12 Nov 2019 17:05:30 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Nov 2019 09:05:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,297,1569308400"; d="scan'208";a="287602412" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga001.jf.intel.com with ESMTP; 12 Nov 2019 09:05:28 -0800 Received: from crsmsx103.amr.corp.intel.com (172.18.63.31) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 12 Nov 2019 09:05:28 -0800 Received: from crsmsx101.amr.corp.intel.com ([169.254.1.94]) by CRSMSX103.amr.corp.intel.com ([169.254.4.168]) with mapi id 14.03.0439.000; Tue, 12 Nov 2019 11:05:26 -0600 From: "Weiny, Ira" To: Andrew Morton CC: Alexander Viro , 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 2/2] fs: Move swap_[de]activate to file_operations Thread-Topic: [PATCH 2/2] fs: Move swap_[de]activate to file_operations Thread-Index: AQHVmPEJn03RPDacYEWb7WKbk7sMtKeHFw8AgACtkeA= Date: Tue, 12 Nov 2019 17:05:25 +0000 Message-ID: <2807E5FD2F6FDA4886F6618EAC48510E92BB4EBE@CRSMSX101.amr.corp.intel.com> References: <20191112003452.4756-1-ira.weiny@intel.com> <20191112003452.4756-3-ira.weiny@intel.com> <20191111164320.80f814161469055b14f27045@linux-foundation.org> In-Reply-To: <20191111164320.80f814161469055b14f27045@linux-foundation.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTM4NDllYjMtZWQxZS00MTQ3LWIzNzgtMTdmZmQwOTcxOGVhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiN3FwcGdWcUNHd0IrWmkwYnd0YWZoTHNTTmx4OTNaaklldUZFb05tZWQ0aHJ1UlwvRktzb1RlV3JGRUNlZFBqNGMifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [172.18.205.10] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: >=20 > On Mon, 11 Nov 2019 16:34:52 -0800 ira.weiny@intel.com wrote: >=20 > > From: Ira Weiny > > > > swap_activate() and swap_deactivate() have nothing to do with address > > spaces. We want to eventually make the address space operations > > dynamic to switch inode flags on the fly. >=20 > What does this mean? >=20 > > So to simplify this code as > > well as properly track these operations we move these functions to the > > file_operations vector. > > > > This has been tested with XFS but not NFS, f2fs, or btrfs. > > > > Also note f2fs and xfs have simple moves of their functions to > > facilitate compilation. No functional changes are contained within > > those functions. > > > > ... > > > > --- a/fs/btrfs/inode.c > > +++ b/fs/btrfs/inode.c > > @@ -11002,6 +11002,8 @@ static const struct file_operations > > btrfs_dir_file_operations =3D { #endif > > .release =3D btrfs_release_file, > > .fsync =3D btrfs_sync_file, > > + .swap_activate =3D btrfs_swap_activate, > > + .swap_deactivate =3D btrfs_swap_deactivate, > > }; >=20 > Shouldn't this be btrfs_file_operations? >=20 Shoot... yes it should and I even thought that as I was moving it and must= have still made the mistake... Sorry, I'll update. Ira