vfs: only allow FSSETXATTR to set DAX flag on files and dirs
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 1 Jul 2019 15:25:36 +0000 (08:25 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 1 Jul 2019 15:25:36 +0000 (08:25 -0700)
commitdbc77f31e58b2902a5e7643761c04bf69f57a32a
tree41ae6b0acb34ae1a82773e5faeaff81acb88a519
parentca29be753445450799958e7d2e5d797d1153389e
vfs: only allow FSSETXATTR to set DAX flag on files and dirs

The DAX flag only applies to files and directories, so don't let it get
set for other types of files.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/inode.c