Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp890416imm; Fri, 14 Sep 2018 07:53:36 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb9NjWbJlkHDFIKpqSY5jlznSiTmXzEgYxZv8MJpPVmH8kX209O6f6RaNT7FXK86mFcaJ6E X-Received: by 2002:a63:9712:: with SMTP id n18-v6mr12155837pge.69.1536936816755; Fri, 14 Sep 2018 07:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536936816; cv=none; d=google.com; s=arc-20160816; b=YVIFMcM/bMHUCEZZv/1WSslhuRrGTDsjuUPniXzdaxgS93Lfd3ePRtZ+Mcz3RnVVYF yxWYZdHHiaVvwUzaiNfQBtWL3IfErvvkyzVThBaxG8Sg1z7xrPklBzAy4zFrKOkieR5x i085x387XzAlR5AA54/W6qW4L3xG5U/CParvFSFGmkFwRQmZ7u0ihXrAtyq2FJp1JVYz UtiXLsqk8L/XnZqWU2k1+gPA3KRt7wDQQDEHAsQV+ucDZXQ8GWGRZ16jGyDsU+BlrNax IEc+mThOSGIBl11HoEBPPeuORuHoXEQ1fACBWySvV+cYCAZIsEi3DTI4g1Q3NNNBeLdu 3Y2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=0DIOfUlFaixWQeyQq6ljLIyLNKgetpWJReLeKg1TLYU=; b=khIwX/CzJWGs/NQ1J1QR0lRRXgdXYSCpvah7nSG7AbEOBYKJqkHBrqQkanL8tGC1Xt q60O4U23FN+kjQ/k9uQgaifWI55jY0hhRzI0P+u2jAsAFckJQcNdrcpObNKd3RVDWzZG 2r0x9KZMjyCQoTUpTLjq+bnItw0thphksJnPHzTXZ07jpzUJ2Vy+aXTedQuQGitSuuy3 Bgv3CgoKDJ7V+KxeiEZhTQjtiN7s/mpdTtKFDH1nqop5SPTtS9Vq5uOVyEKizBEaF8yn WsHyudakJRHwpAfL0uOqMVzou7HM8UKuOZ0oh2zE4qWklsvJ2ztxZ8Id7Aw0nLi1UaRp /6JA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 b18-v6si7482015pgb.612.2018.09.14.07.53.20; Fri, 14 Sep 2018 07:53:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728363AbeINUGL (ORCPT + 99 others); Fri, 14 Sep 2018 16:06:11 -0400 Received: from g9t5008.houston.hpe.com ([15.241.48.72]:50334 "EHLO g9t5008.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbeINUGK (ORCPT ); Fri, 14 Sep 2018 16:06:10 -0400 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g9t5008.houston.hpe.com (Postfix) with ESMTP id 0A0A356; Fri, 14 Sep 2018 14:51:18 +0000 (UTC) Received: from misato.americas.hpqcorp.net (unknown [10.34.81.122]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 6E93545; Fri, 14 Sep 2018 14:51:17 +0000 (UTC) From: Toshi Kani To: jack@suse.cz, dan.j.williams@intel.com Cc: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, Toshi Kani , stable@vger.kernel.org Subject: [PATCH v2 1/3] ext4, dax: add ext4_bmap to ext4_dax_aops Date: Fri, 14 Sep 2018 08:51:12 -0600 Message-Id: <20180914145114.11122-2-toshi.kani@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180914145114.11122-1-toshi.kani@hpe.com> References: <20180914145114.11122-1-toshi.kani@hpe.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ext4 mount path calls .bmap to the journal inode. This currently works for the DAX mount case because ext4_iget() always set 'ext4_da_aops' to any regular files. In preparation to fix ext4_iget() to set 'ext4_dax_aops' for ext4 DAX files, add ext4_bmap() to 'ext4_dax_aops'. .bmap works for DAX inodes. [1] [1]: https://lkml.org/lkml/2018/9/12/803 Fixes: 5f0663bb4a64 ("ext4, dax: introduce ext4_dax_aops") Signed-off-by: Toshi Kani Suggested-by: Jan Kara Cc: Jan Kara Cc: Dan Williams Cc: "Theodore Ts'o" Cc: Andreas Dilger Cc: --- fs/ext4/inode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index d0dd585add6a..e4acaa980467 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -3948,6 +3948,7 @@ static const struct address_space_operations ext4_dax_aops = { .writepages = ext4_dax_writepages, .direct_IO = noop_direct_IO, .set_page_dirty = noop_set_page_dirty, + .bmap = ext4_bmap, .invalidatepage = noop_invalidatepage, };