diff options
author | Dave Chinner <dchinner@redhat.com> | 2016-03-01 01:41:33 +0300 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-03-01 01:41:33 +0300 |
commit | db10c697b40e34ac91bbcdd866e73a3d0bad7780 (patch) | |
tree | aa05f9b216fa18ef704fd2e6cd9160ca9123b62d /fs/xfs/xfs_ioctl.c | |
parent | e8897529053d05f5bd677706ba6807fc2f2b942c (diff) | |
download | linux-db10c697b40e34ac91bbcdd866e73a3d0bad7780.tar.xz |
xfs: S_DAX is only for regular files
Only regular files can use DAX for data operations, so we should
restrict setting it on the VFS inode to regular files. Setting it on
metadata inodes may cause the VFS to do the wrong thing for such
inodes, so avoid potential problems by restricting the scope of the
flag to what we know is supported.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Tested-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
0 files changed, 0 insertions, 0 deletions