Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp888547imm; Fri, 14 Sep 2018 07:51:53 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYm5RWkbB0qZdBHaSYnQT1hF6oXK081xNzQqjBaNlzImaAj/3+7dOBolTVB5XCqKsmRy0WF X-Received: by 2002:a62:9992:: with SMTP id t18-v6mr12930313pfk.239.1536936713234; Fri, 14 Sep 2018 07:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536936713; cv=none; d=google.com; s=arc-20160816; b=lgsONUV4LcB5li39nJ6PYDBfTeN3nGAEqRhXpnYkFQFi9TciAvBPr4HvOYhr4BG0NG q+BkQe4It8B+l2IqonAFLa84ZbWSgcPir/mKTLUTL5wCGfSimHl45+g0DzLhVHbjkklt i23wEjSksPGFji9HM8inIh7a2iA3f9n1lUNOyL1aaNmIArvKlqYQ31eGiYGPR9PxPUlu fY9TGx5rp8AdjksDkick4YMzmPeSFF0fFmnuLzZ4wbNKo0YdqT0agcXcdsd+z2WRbh2Q e5Bi535ER68cPAkYyeTeKyCY8r5o4C+nZGPpC/Rlc1Z6dC/UCwjJNeCbkruAsxLa4vwY 6GkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=61BlbwaHeBJPiGHg6mMW9Jr8EIeZUJjQkNoTU/VMAsg=; b=bNGI/gvkFccmUU8wpZHyiVQrwUcQvFSAO/icRPMaTurHZ7WN0ddoS2qeJgRdz9kGNH K0nKaJJMsBMdE5B3arD2zcIJEYZiXaPylINIrxLdesseZ8b/egehT5iQEtGn1X3Y0Ame dnp2fwONHUrum5sRXHLV76UcxNN2/3IV5TBwk2GWPCKV2fveYuxhDtKop/opCZOO4KCp BRsJkOyTmvEQf2wZg4pffrsagcNtGA6fDzwLx5//YaiVLmO660aHbhrBpKXeaxE7rsRN 2y6CU0uZ0m5BqjA7MRwyGACsqVo+a2XZu1rJNsgBy5JfTzPuT/KDNQo8SWVWEReEruuN 7lAw== 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 h15-v6si7362431pgn.404.2018.09.14.07.51.36; Fri, 14 Sep 2018 07:51:53 -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 S1728336AbeINUGI (ORCPT + 99 others); Fri, 14 Sep 2018 16:06:08 -0400 Received: from g9t5008.houston.hpe.com ([15.241.48.72]:50306 "EHLO g9t5008.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbeINUGI (ORCPT ); Fri, 14 Sep 2018 16:06:08 -0400 X-Greylist: delayed 170028 seconds by postgrey-1.27 at vger.kernel.org; Fri, 14 Sep 2018 16:06:08 EDT Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g9t5008.houston.hpe.com (Postfix) with ESMTP id 3382E53; Fri, 14 Sep 2018 14:51:16 +0000 (UTC) Received: from misato.americas.hpqcorp.net (unknown [10.34.81.122]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 8F57F45; Fri, 14 Sep 2018 14:51:15 +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 Subject: [PATCH v2 0/3] fix sync to flush processor cache for ext2/4 DAX files Date: Fri, 14 Sep 2018 08:51:11 -0600 Message-Id: <20180914145114.11122-1-toshi.kani@hpe.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset fixes issues that sync syscall to existing DAX ex2/4 files does not flush processor cache. Patch 1/3 adds .bmap to ext4_dax_aops so that mount -o dax works for the journal inode. Patch 2/3 fixes the ext4 issue by setting i_flags before ext4_set_aops() in ext4_iget(). Patch 3/3 fixes the ext2 issue by setting i_flags before ext2_set_aops() in ext2_iget(), i.e. same as ext4. v2: - Add .bmap to ext4_dax_aops, instead of disabling dax for the journal inode. (Jan Kara) - Initialize i_flags early in ext4_iget(). (Jan Kara) - Update Fixes tag and add Cc to Stable. (Dan Williams) - Add fix to ext2. --- Toshi Kani (3): 1/3 ext4, dax: add ext4_bmap to ext4_dax_aops 2/3 ext4, dax: set ext4_dax_aops for dax files 3/3 ext2, dax: set ext2_dax_aops for dax files --- fs/ext2/inode.c | 2 +- fs/ext4/inode.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)