Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1776437imm; Thu, 27 Sep 2018 02:16:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV62kVKhJrM0MgNkbTiAi5Egvgaa0I9rLqK/aCTUesty4aL8JdDWZ6ItlfuJES18+b2EsqMww X-Received: by 2002:a62:9cd7:: with SMTP id u84-v6mr10497431pfk.90.1538039794870; Thu, 27 Sep 2018 02:16:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538039794; cv=none; d=google.com; s=arc-20160816; b=gQ0yRm79LV2uE9dmj1irqi8/ZoNgJDm1DwLxrvJodtStdbRe+J/HsP4Ws6MQqHcl5T s3XAKbb37CH3YGSnKhXZjvoeoV/JkqRxgXRXltalhDdQRzeddc4UT2ryxztvp8flpPXG Lpg6ieueXlPCKYaDEVPa+8hEhUZhcEN2dI/UBcz8eO3dfAlEqSFu4TbYurHHWofRDie5 bFrofkQgbETHv90DfMcnp9OVCc/ls1CYD09cCdKi7BQBCNYNiJSk04nEVR6bgLiRFWNV p+VQstmDMh0XGO+R6ScGlgNQV1ML10QE3P9iW3UBrDWLHG/ESt6Gy0FmNj6QH1vMFSmH Whrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=RZle2oD1EM+JKTO794GkK7kP+I6aqIv3wmuesDv13ek=; b=OKukp/2WE89swiBjje+ARtnx7RjBsLNDnyNbzq6ipzQvtJw/iVKIOGYa38W+6KHMMF dWve+01LFADxzyHoiJ+aHoLjIHRHMbSnzKjzEHtI8u184h11RGuytdZ5Eb2h8p4HMQd3 I+GrOhd1RzT8vsuM5qU7/AkkmjnVveMQMhqcNpWx+2PNG5pzfMVhiXjZuK1u24hnXgE8 T6Yd/xMKhrP48DaUknJDe1d1aJN5xSNtC30zBt7Irbd/a27+T4PAY2ceU2BYqCBsDDk6 q7pbw+onGaXjkR62lEuzegj5hk0hr1U5g26rUBtsN6/okbL63xOlMGrutwGy+LWggQAQ m3tg== 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 b129-v6si1656725pfa.12.2018.09.27.02.16.19; Thu, 27 Sep 2018 02:16:34 -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 S1728393AbeI0Pcl (ORCPT + 99 others); Thu, 27 Sep 2018 11:32:41 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55586 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728187AbeI0Pcl (ORCPT ); Thu, 27 Sep 2018 11:32:41 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2B8E61117; Thu, 27 Sep 2018 09:15:23 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Toshi Kani , Theodore Tso , Jan Kara Subject: [PATCH 4.18 84/88] ext4, dax: add ext4_bmap to ext4_dax_aops Date: Thu, 27 Sep 2018 11:04:05 +0200 Message-Id: <20180927090310.753251195@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180927090300.631426620@linuxfoundation.org> References: <20180927090300.631426620@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Toshi Kani commit 94dbb63117e82253c9592816aa4465f0a9c94850 upstream. 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', since bmap works for DAX inodes. Fixes: 5f0663bb4a64 ("ext4, dax: introduce ext4_dax_aops") Signed-off-by: Toshi Kani Signed-off-by: Theodore Ts'o Suggested-by: Jan Kara Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- fs/ext4/inode.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -3951,6 +3951,7 @@ static const struct address_space_operat .writepages = ext4_dax_writepages, .direct_IO = noop_direct_IO, .set_page_dirty = noop_set_page_dirty, + .bmap = ext4_bmap, .invalidatepage = noop_invalidatepage, };