xfs
[Top] [All Lists]

Re: [PATCH 3/3] xfs: introduce per-inode DAX enablement

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [PATCH 3/3] xfs: introduce per-inode DAX enablement
From: Dan Williams <dan.j.williams@xxxxxxxxx>
Date: Thu, 21 Jan 2016 08:37:11 -0800
Cc: xfs@xxxxxxxxxxx, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>, ext4@xxxxxxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=XnYlUfPJlqgnERVUjvcfvMtgthtAAPx5ga/Z/XQKV5g=; b=YFBYsDcl6fARIqvwPLvpFV7CDWszHSrkSkRhG2RaNSY/OwAHxAUYi8q+8QOh3vAcYa RTPe4QM56Kpl5MylFuFwIHKDZGzSntr/ozfHtwxxKb9xmeBFisnquNoNt3EVWkKTFBHl S6yDFzceiwSsGS6kKjmgrUS/JnnLq4gIzZ5s2CVTzdICjD1lbMNreC30t88lNIxrzsVM JDs6YYHYbmlDIMYSy0TBSxcvS9NeKzgkkojMsCza3jl61DnWdz77aLz6bysqdKwbh5aZ jjqJtW+0Jko874v4ZsfeE4HKViVXXZkrrwBIYdXeNEh9jupZRUyzs8Y0FP5CuOsXAoq3 cYCg==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=XnYlUfPJlqgnERVUjvcfvMtgthtAAPx5ga/Z/XQKV5g=; b=xAAKO6XApktXf2AeEyNxX2OqKHKOB7zzwH8GDsGwt7F5hfN8IEQuh0jT50FjimQJy9 faApPECv8FhSir6/FBK6QCK3GVA92trWqrNX29y3T19VZ7hzn98xYY4rG9s3a2049K4X RzHDTBilOCc28u7STkhuNVrRxAriqqmKUmjAiDzaEwUU3l0/VekejC6yW33uofQO8/f5 h7v5IO2FnMNvYebrC1LTVh3/Wv6VtnAMtwmLDwvhaigl6Mx3ulPgBDyYIJCovCDnnJUz fN9LpryDBlUemLpqAx3Wgt4/de/3zOQe/MoZ6btox8ed3iUAx/BTi3iNJ28k7BzWPX0h /1Mg==
In-reply-to: <1451886892-15548-4-git-send-email-david@xxxxxxxxxxxxx>
References: <1451886892-15548-1-git-send-email-david@xxxxxxxxxxxxx> <1451886892-15548-4-git-send-email-david@xxxxxxxxxxxxx>
Sender: dan.j.williams@xxxxxxxxx
On Sun, Jan 3, 2016 at 9:54 PM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
> From: Dave Chinner <dchinner@xxxxxxxxxx>
>
> Rather than just being able to turn DAX on and off via a mount
> option, some applications may only want to enable DAX for certain
> performance critical files in a filesystem.
>
> This patch introduces a new inode flag to enable DAX in the v3 inode
> di_flags2 field. It adds support for setting and clearing flags in
> the di_flags2 field via the XFS_IOC_FSSETXATTR ioctl, and sets the
> S_DAX inode flag appropriately when it is seen.
>
> When this flag is set on a directory, it acts as an "inherit flag".
> That is, inodes created in the directory will automatically inherit
> the on-disk inode DAX flag, enabling administrators to set up
> directory heirarchies that automatically use DAX. Setting this flag
> on an empty root directory will make the entire filesystem use DAX
> by default.

When switching from page-cache to DAX, don't we need to flush existing
page cache mappings and remap directly?  Or, is the thought that
userspace needs to comprehend the presence of mixed mappings after
changing S_DAX?

<Prev in Thread] Current Thread [Next in Thread>