diff options
| author | Christoph Hellwig <hch@lst.de> | 2026-07-29 15:03:12 +0200 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-09-03 08:51:55 +0200 |
| commit | a0f3142afdcb309731e79d71b9c5eebacd7cb366 (patch) | |
| tree | 643eda0d4c6e357e73acdca0c95464b3b528e289 | |
| parent | 1e4c3089ab63d3afee702243630d9c3c919a046b (diff) | |
| download | linux-next-a0f3142afdcb309731e79d71b9c5eebacd7cb366.tar.gz linux-next-a0f3142afdcb309731e79d71b9c5eebacd7cb366.zip | |
xfs: cleanup XFS_IOC_GETVERSION_32 handling
Move the cmd assignment into the function call, fix a spelling error in
the comment and move the comment next to the call.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
| -rw-r--r-- | fs/xfs/xfs_ioctl32.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_ioctl32.c b/fs/xfs/xfs_ioctl32.c index 2162eda01743..ede890d4cbc3 100644 --- a/fs/xfs/xfs_ioctl32.c +++ b/fs/xfs/xfs_ioctl32.c @@ -459,10 +459,9 @@ xfs_file_compat_ioctl( case XFS_IOC_FSGROWFSRT_32: return xfs_compat_ioc_growfs_rt(filp, ip->i_mount, arg); #endif - /* long changes size, but xfs only copiese out 32 bits */ case XFS_IOC_GETVERSION_32: - cmd = _NATIVE_IOC(cmd, long); - return xfs_file_ioctl(filp, cmd, p); + /* long changes size, but xfs only copies out 32 bits */ + return xfs_file_ioctl(filp, _NATIVE_IOC(cmd, long), p); case XFS_IOC_SWAPEXT_32: { struct xfs_swapext sxp; struct compat_xfs_swapext __user *sxu = arg; |
