Skip to content

Commit dc5e1cb

Browse files
Darrick J. WongChandan Babu R
authored andcommitted
xfs: fix direction in XFS_IOC_EXCHANGE_RANGE
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Chandan Babu R <[email protected]>
1 parent 1ec9307 commit dc5e1cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/libxfs/xfs_fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ struct xfs_getparents_by_handle {
996996
#define XFS_IOC_FSGEOMETRY _IOR ('X', 126, struct xfs_fsop_geom)
997997
#define XFS_IOC_BULKSTAT _IOR ('X', 127, struct xfs_bulkstat_req)
998998
#define XFS_IOC_INUMBERS _IOR ('X', 128, struct xfs_inumbers_req)
999-
#define XFS_IOC_EXCHANGE_RANGE _IOWR('X', 129, struct xfs_exchange_range)
999+
#define XFS_IOC_EXCHANGE_RANGE _IOW ('X', 129, struct xfs_exchange_range)
10001000
/* XFS_IOC_GETFSUUID ---------- deprecated 140 */
10011001

10021002

0 commit comments

Comments
 (0)