Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp495497ybm; Thu, 28 May 2020 08:02:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0rO3JJZW5iRucypNyvqLmsDr58ap3k8JI2jHtYmOrHXhoiYMGxF13n/MC1/mMTMJAtq6M X-Received: by 2002:a05:6402:1649:: with SMTP id s9mr3458831edx.127.1590678131527; Thu, 28 May 2020 08:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590678131; cv=none; d=google.com; s=arc-20160816; b=TMII8pYq7nwUzA7prnYHSpIq717/Z7Zl5tSrXOFGh5oQAKU3mSq/ckX+a4wodDJi7p FGHAjecBPkLIHkCP4ShhhsYWL6K3BQgqIg6OlcGeVQobLXiNVS8tZVmHO6h4v30Y5PUZ RnoDx+6w7u+BbR7gFvm/iK8Mz4JkNhabrB5YMVGSXum+iyRoiOu+lH47I+1LyKf3ZQ0u yRHgo4aNABCl8+fPyDT7/8kUT1Xrk9MFZj1DRY0/qmrKVfdf2I28nkdw6JcPj4Qgoqwz OGudnGnDEkSCNe5fHjFZUHkVsgTymDQzx9gp2bc41A3n7uD3qcCIeacM1L9R6obCT+rY OKCQ== 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 :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=9o2lLskJJ2yTu7Kds8I4kpRrhSXY85VkE+6FFY0lYFk=; b=nfWpyYKXVC4czs/4RxREb3JE8TZChrwVjgKey/GScUSLYxWpLYRzzU21ZkLgMgv96t /T0Ny6boFMS+epHxHHiO0T920VlTCOj2fjtEKz/fQ/CfJoXR0n2EfUKQbofhtvByPa/N NbtOOwHyZXto9vNU3ylj5YMYl8dVUPb8zotmkQpNvk1qJuMkjwxicbBjm77Gk0tD1bdz cdMWQvuEC0YdOQ0Eu68eH2yLuyeOFNOksk4D/upS9xDROZhToCpcrOmcUTaYSGr8QOhH gGfKho3UP8APXLCwyRLaSob51M0SxODLGWCAXga3hrHHamhj7ecnmAxRWelygsXCDVGV FfCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn18si3600380edb.348.2020.05.28.08.01.43; Thu, 28 May 2020 08:02:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403931AbgE1PAK (ORCPT + 99 others); Thu, 28 May 2020 11:00:10 -0400 Received: from mga17.intel.com ([192.55.52.151]:19225 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403761AbgE1PAH (ORCPT ); Thu, 28 May 2020 11:00:07 -0400 IronPort-SDR: dDQWGQ3nfTj0DShZwYYMM0pBff195/nJr9R7rD13LqoFIsaQ0nLbvs23HqiXaASgLLgZvZ0Wv4 DeMclpEtwE0A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2020 08:00:07 -0700 IronPort-SDR: akjpAeh3IlKKiqVT11n31OdwhJP6p5ERYRDOV0+U4clY9f42cnMhMDsgUnRzmW8/4Va6hxoQng 7Gbe0SuZejxw== X-IronPort-AV: E=Sophos;i="5.73,445,1583222400"; d="scan'208";a="270875408" Received: from iweiny-desk2.sc.intel.com (HELO localhost) ([10.3.52.147]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2020 08:00:06 -0700 From: ira.weiny@intel.com To: linux-ext4@vger.kernel.org, Andreas Dilger , "Theodore Y. Ts'o" , Jan Kara , Eric Biggers Cc: Ira Weiny , Al Viro , Dan Williams , Dave Chinner , Christoph Hellwig , Jeff Moyer , "Darrick J. Wong" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 0/9] Enable ext4 support for per-file/directory DAX operations Date: Thu, 28 May 2020 07:59:54 -0700 Message-Id: <20200528150003.828793-1-ira.weiny@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Ira Weiny Changes from V4: Fix up DAX mutual exclusion with other flags. Add clean up patch (remove jflags) Changes from V3: Change EXT4_DAX_FL to bit24 Cache device DAX support in the super block and use that is ext4_should_use_dax() Changes from V2: Rework DAX exclusivity with verity and encryption based on feedback from Eric Enable the same per file DAX support in ext4 as was done for xfs. This series builds and depends on the V11 series for xfs.[1] This passes the same xfstests test as XFS. The only issue is that this modifies the old mount option parsing code rather than waiting for the new parsing code to be finalized. This series starts with 3 fixes which include making Verity and Encrypt truly mutually exclusive from DAX. I think these first 3 patches should be picked up for 5.8 regardless of what is decided regarding the mount parsing. [1] https://lore.kernel.org/lkml/20200428002142.404144-1-ira.weiny@intel.com/ To: linux-ext4@vger.kernel.org To: Andreas Dilger To: "Theodore Y. Ts'o" To: Jan Kara To: Eric Biggers Cc: Al Viro Cc: Dan Williams Cc: Dave Chinner Cc: Christoph Hellwig Cc: Jeff Moyer Cc: "Darrick J. Wong" Cc: linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org Ira Weiny (9): fs/ext4: Narrow scope of DAX check in setflags fs/ext4: Disallow verity if inode is DAX fs/ext4: Change EXT4_MOUNT_DAX to EXT4_MOUNT_DAX_ALWAYS fs/ext4: Update ext4_should_use_dax() fs/ext4: Only change S_DAX on inode load fs/ext4: Make DAX mount option a tri-state fs/ext4: Remove jflag variable fs/ext4: Introduce DAX inode flag Documentation/dax: Update DAX enablement for ext4 Documentation/filesystems/dax.txt | 6 +- Documentation/filesystems/ext4/verity.rst | 3 + fs/ext4/ext4.h | 27 +++++-- fs/ext4/ialloc.c | 2 +- fs/ext4/inode.c | 26 +++++-- fs/ext4/ioctl.c | 65 ++++++++++++++--- fs/ext4/super.c | 85 ++++++++++++++++++----- fs/ext4/verity.c | 5 +- include/uapi/linux/fs.h | 1 + 9 files changed, 175 insertions(+), 45 deletions(-) -- 2.25.1