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)
commit314e01a6d7ddf04608440beb087b21d8aa32f03f
tree7f763f06a3e348adc856d7536175a024d621a9d5
parent8612de3f7ba6e900465e340516b8313806d27b2d
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: f7664b31975b ("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