xfs: fix direction in XFS_IOC_EXCHANGE_RANGE
authorDarrick J. Wong <djwong@kernel.org>
Thu, 20 Jun 2024 22:05:26 +0000 (15:05 -0700)
committerChandan Babu R <chandanbabu@kernel.org>
Wed, 26 Jun 2024 08:59:25 +0000 (14:29 +0530)
The kernel reads userspace's buffer but does not write it back.
Therefore this is really an _IOW ioctl.  Change this before 6.10 final
releases.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/libxfs/xfs_fs.h

index 97996cb..454b63e 100644 (file)
@@ -996,7 +996,7 @@ struct xfs_getparents_by_handle {
 #define XFS_IOC_FSGEOMETRY          _IOR ('X', 126, struct xfs_fsop_geom)
 #define XFS_IOC_BULKSTAT            _IOR ('X', 127, struct xfs_bulkstat_req)
 #define XFS_IOC_INUMBERS            _IOR ('X', 128, struct xfs_inumbers_req)
-#define XFS_IOC_EXCHANGE_RANGE      _IOWR('X', 129, struct xfs_exchange_range)
+#define XFS_IOC_EXCHANGE_RANGE      _IOW ('X', 129, struct xfs_exchange_range)
 /*     XFS_IOC_GETFSUUID ---------- deprecated 140      */