diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-12-21 13:07:38 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-01-17 09:17:11 -0800 |
commit | b3bb9413e717b44e4aea833d07f14e90fb91cf97 (patch) | |
tree | 066d6d85f3ab6ea161ff4af6f82a3042321c6ded /fs/xfs/xfs_ioctl.c | |
parent | 4d1b97f9ce7c0d2af2bb85b12d48e6902172a28e (diff) | |
download | linux-b3bb9413e717b44e4aea833d07f14e90fb91cf97.tar.gz linux-b3bb9413e717b44e4aea833d07f14e90fb91cf97.tar.bz2 linux-b3bb9413e717b44e4aea833d07f14e90fb91cf97.zip |
xfs: remove the XFS_IOC_{ALLOC,FREE}SP* definitions
Now that we've made these ioctls defunct, move them from xfs_fs.h to
xfs_ioctl.c, which effectively removes them from the publicly supported
ioctl interfaces for XFS.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r-- | fs/xfs/xfs_ioctl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index 64a7ef4a7298..03a6198c97f6 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c @@ -1855,6 +1855,15 @@ xfs_fs_eofblocks_from_user( } /* + * These long-unused ioctls were removed from the official ioctl API in 5.17, + * but retain these definitions so that we can log warnings about them. + */ +#define XFS_IOC_ALLOCSP _IOW ('X', 10, struct xfs_flock64) +#define XFS_IOC_FREESP _IOW ('X', 11, struct xfs_flock64) +#define XFS_IOC_ALLOCSP64 _IOW ('X', 36, struct xfs_flock64) +#define XFS_IOC_FREESP64 _IOW ('X', 37, struct xfs_flock64) + +/* * Note: some of the ioctl's return positive numbers as a * byte count indicating success, such as readlink_by_handle. * So we don't "sign flip" like most other routines. This means |