]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: lift cursor copy in/out into xfs_ioc_attr_list
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Feb 2020 01:30:41 +0000 (17:30 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Mar 2020 04:55:54 +0000 (20:55 -0800)
commit5eac1a570fbf041f2b7812ddf2425d45ec782ca1
tree6d1ce828570cf70eab75a5d5010d2deb94ae4ad8
parentbd6ffd3bdc0be2942963dfdca61eef6ad8aafc12
xfs: lift cursor copy in/out into xfs_ioc_attr_list

Lift the common code to copy the cursor from and to user space into
xfs_ioc_attr_list.  Note that this means we copy in twice now as
the cursor is in the middle of the conaining structure, but we never
touch the memory for the original copy.  Doing so keeps the cursor
handling isolated in the common helper.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_ioctl.h
fs/xfs/xfs_ioctl32.c