Skip to content

xfs: fixes for XFS_DIFLAG2_DAX support

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4xfs: XFS_DIFLAG_DAX is only for regular files or directoriesfs/xfs/xfs_ioctl.c+8 -00 replies
2/4xfs: S_DAX is only for regular filesfs/xfs/xfs_iops.c+3 -20 replies
3/4xfs: dynamically switch modes when XFS_DIFLAG2_DAX is set/clearedfs/xfs/xfs_ioctl.c+92 -132 replies
4/4xfs: XFS_DIFLAG2_DAX limited by PAGE_SIZEfs/xfs/xfs_ioctl.c fs/xfs/xfs_iops.c+9 -43 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBrian FosterRoss Zwisler
SeriesR-b
1/4
2/4
3/4T-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] xfs: fixes for XFS_DIFLAG2_DAX support

Hi folks,

This is a series to add the correct constraints to using the on-disk inode flag to enable DAX on per-file basis. The same constraints are placed on setting the flag on directories for inheritance purposes.

These constraints are:
- the inode flag is limited to regular files or directory inodes.
- the S_DAX flag is only ever set on regular files
- the flag can only ever be set on filesystems which have blocksize == PAGE_SIZE (for now)
- When the flag is set or cleared, the current mapping contents are flushed and then invalidated so that the new access mode starts with an empty mapping.
- Setting or clearing the flag is atomic w.r.t. IO and page faults.

I've tested these manually with xfs_io (patchset for supporting chattr +x/-x to be sent soon), and it all appears to work as expected. I'd like to push these for 4.5-rc6 so the initial kernel with support for this flag doesn't do silly things, so comments, testing and review woul dbe appreciated.

Cheers,

Dave.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs