]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fall back to native ioctls for unhandled compat ones
authorChristoph Hellwig <hch@lst.de>
Fri, 16 Aug 2019 06:41:06 +0000 (23:41 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 17 Aug 2019 01:42:59 +0000 (18:42 -0700)
commit87b70624e6949ef197b53b40ba8e3431e779e7f1
tree7f763f06a3e348adc856d7536175a024d621a9d5
parent66dc6183ecefe6778323a6c6119c32e9636b237f
xfs: fall back to native ioctls for unhandled compat ones

Always try the native ioctl if we don't have a compat handler.  This
removes a lot of boilerplate code as 'modern' ioctls should generally
be compat clean, and fixes the missing entries for the recently added
FS_IOC_GETFSLABEL/FS_IOC_SETFSLABEL ioctls.

Fixes: 013633769683 ("xfs: implement online get/set fs label")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_ioctl32.c