diff options
author | Dave Chinner <david@fromorbit.com> | 2016-01-18 22:16:08 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-01-18 22:16:08 +0100 |
commit | 4c931f770d327f4851917828a1682d030b53d021 (patch) | |
tree | c7b98ca2dacf3b39e4233e96002ca80b6833017a /fs/xfs/libxfs/xfs_format.h | |
parent | Merge branch 'xfs-misc-fixes-for-4.5-2' into for-next (diff) | |
parent | xfs: introduce per-inode DAX enablement (diff) | |
download | linux-4c931f770d327f4851917828a1682d030b53d021.tar.xz linux-4c931f770d327f4851917828a1682d030b53d021.zip |
Merge branch 'xfs-setxattr-promotion' into for-next
Diffstat (limited to 'fs/xfs/libxfs/xfs_format.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_format.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h index e2536bb1c760..dc97eb21af07 100644 --- a/fs/xfs/libxfs/xfs_format.h +++ b/fs/xfs/libxfs/xfs_format.h @@ -984,8 +984,6 @@ static inline void xfs_dinode_put_rdev(struct xfs_dinode *dip, xfs_dev_t rdev) /* * Values for di_flags - * There should be a one-to-one correspondence between these flags and the - * XFS_XFLAG_s. */ #define XFS_DIFLAG_REALTIME_BIT 0 /* file's blocks come from rt area */ #define XFS_DIFLAG_PREALLOC_BIT 1 /* file space has been preallocated */ @@ -1026,6 +1024,15 @@ static inline void xfs_dinode_put_rdev(struct xfs_dinode *dip, xfs_dev_t rdev) XFS_DIFLAG_EXTSZINHERIT | XFS_DIFLAG_NODEFRAG | XFS_DIFLAG_FILESTREAM) /* + * Values for di_flags2 These start by being exposed to userspace in the upper + * 16 bits of the XFS_XFLAG_s range. + */ +#define XFS_DIFLAG2_DAX_BIT 0 /* use DAX for this inode */ +#define XFS_DIFLAG2_DAX (1 << XFS_DIFLAG2_DAX_BIT) + +#define XFS_DIFLAG2_ANY (XFS_DIFLAG2_DAX) + +/* * Inode number format: * low inopblog bits - offset in block * next agblklog bits - block number in ag |