]> git.itanic.dy.fi Git - linux-stable/commit
xfs: clean up the XFS_IOC_{GS}ET_RESBLKS handler
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Dec 2023 17:40:54 +0000 (18:40 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Thu, 7 Dec 2023 09:21:07 +0000 (14:51 +0530)
commit64f08b152a3bc171f4651271bfe973ad3d085ab6
treedbd4eb8633ec524badcef92265fd616d5ee0c97e
parent011f129fee4bd064a3db30ca1a0139548a619482
xfs: clean up the XFS_IOC_{GS}ET_RESBLKS handler

The XFS_IOC_GET_RESBLKS and XFS_IOC_SET_RESBLKS already share a fair
amount of code, and will share even more soon.  Move the logic for both
of them out of the main xfs_file_ioctl function into a
xfs_ioctl_getset_resblocks helper to share the code and prepare for
additional changes.

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