OSDN Git Service

xfs: don't set v3 xflags for v2 inodes
authorChristoph Hellwig <hch@lst.de>
Sat, 2 Sep 2017 15:21:20 +0000 (08:21 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 2 Sep 2017 15:22:19 +0000 (08:22 -0700)
commitdd60687ee541ca3f6df8758f38e6f22f57c42a37
treebed53ccdad2ae5b60453328cf0190f0d1075ff1c
parent7bf7a193a90cadccaad21c5970435c665c40fe27
xfs: don't set v3 xflags for v2 inodes

Reject attempts to set XFLAGS that correspond to di_flags2 inode flags
if the inode isn't a v3 inode, because di_flags2 only exists on v3.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_ioctl.c