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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 AA458C17441 for ; Tue, 12 Nov 2019 13:33:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7792F21783 for ; Tue, 12 Nov 2019 13:33:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7792F21783 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 220E86B0005; Tue, 12 Nov 2019 08:33:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1D1726B0003; Tue, 12 Nov 2019 08:33:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 09A6E6B0006; Tue, 12 Nov 2019 08:33:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0019.hostedemail.com [216.40.44.19]) by kanga.kvack.org (Postfix) with ESMTP id E70DC6B0003 for ; Tue, 12 Nov 2019 08:33:51 -0500 (EST) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with SMTP id 71A262477 for ; Tue, 12 Nov 2019 13:33:51 +0000 (UTC) X-FDA: 76147718262.13.smell91_5bd6f13187b39 X-HE-Tag: smell91_5bd6f13187b39 X-Filterd-Recvd-Size: 2405 Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by imf09.hostedemail.com (Postfix) with ESMTP for ; Tue, 12 Nov 2019 13:33:50 +0000 (UTC) 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 64721B213; Tue, 12 Nov 2019 13:33:49 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id AC6B71E4AD2; Tue, 12 Nov 2019 14:33:48 +0100 (CET) Date: Tue, 12 Nov 2019 14:33:48 +0100 From: Jan Kara To: Andrew Morton Cc: ira.weiny@intel.com, 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 Message-ID: <20191112133348.GJ1241@quack2.suse.cz> References: <20191112003452.4756-1-ira.weiny@intel.com> <20191112003452.4756-3-ira.weiny@intel.com> <20191111164320.80f814161469055b14f27045@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191111164320.80f814161469055b14f27045@linux-foundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) 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: On Mon 11-11-19 16:43:20, Andrew Morton wrote: > On Mon, 11 Nov 2019 16:34:52 -0800 ira.weiny@intel.com wrote: > > > 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. > > What does this mean? See my reply to Christoph [1]. Ira wants to make switching inodes between DAX and non-DAX mode work which means switching also address_space_operations pointer in the mapping. Honza [1] lore.kernel.org/r/20191112133055.GI1241@quack2.suse.cz -- Jan Kara SUSE Labs, CR