diff options
| author | Christoph Hellwig <hch@lst.de> | 2026-07-29 15:03:12 +0200 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-09-07 07:51:51 +0200 |
| commit | d99d2af5b5152c677f12088c7ab3919e2127731d (patch) | |
| tree | 1ac1fd71d52cd1038d507e839d69e3bd7b8d14af | |
| parent | af5e40c5cdc7ff098594242c2603df35cf93ab6b (diff) | |
| download | linux-next-d99d2af5b5152c677f12088c7ab3919e2127731d.tar.gz linux-next-d99d2af5b5152c677f12088c7ab3919e2127731d.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; |
