]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
xfs: don't set v3 xflags for v2 inodes
authorChristoph Hellwig <hch@lst.de>
Sun, 17 Sep 2017 21:06:29 +0000 (14:06 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 20 Sep 2017 12:32:04 +0000 (07:32 -0500)
commita11ba10d909e1ae7b0f652354749ccd12d05837e
tree0bf751f2c18db3c6a5176e4bdd01169d3557494a
parent75f6ee08fb34de6f1f33c853e5f04c1f8b1333d5
xfs: don't set v3 xflags for v2 inodes

BugLink: http://bugs.launchpad.net/bugs/1718412
commit dd60687ee541ca3f6df8758f38e6f22f57c42a37 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/xfs/xfs_ioctl.c