From: Al Viro Date: Mon, 27 Aug 2012 16:59:52 +0000 (-0400) Subject: switch xfs_find_handle() to fget_light() X-Git-Tag: next-20120924~98^2~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5d30b16bae60e3f1977b403ed70df9a5b8ade864;p=karo-tx-linux.git switch xfs_find_handle() to fget_light() Signed-off-by: Al Viro --- diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index 0e0232c3b6d9..21483eac402d 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c @@ -72,11 +72,11 @@ xfs_find_handle( struct inode *inode; struct file *file = NULL; struct path path; - int error; + int error, fput_needed; struct xfs_inode *ip; if (cmd == XFS_IOC_FD_TO_HANDLE) { - file = fget(hreq->fd); + file = fget_light(hreq->fd, &fput_needed); if (!file) return -EBADF; inode = file->f_path.dentry->d_inode; @@ -134,7 +134,7 @@ xfs_find_handle( out_put: if (cmd == XFS_IOC_FD_TO_HANDLE) - fput(file); + fput_light(file, fput_needed); else path_put(&path); return error;