diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-08-27 18:59:52 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-27 03:10:11 +0200 |
commit | 64e09fa2e1fef1696a8685c7aad7e0d3dd24ce71 (patch) | |
tree | 9f5596dd005fe225a5b077c9ff0c9d5051218b90 | |
parent | switch xfs_swapext() to fget_light() (diff) | |
download | linux-64e09fa2e1fef1696a8685c7aad7e0d3dd24ce71.tar.xz linux-64e09fa2e1fef1696a8685c7aad7e0d3dd24ce71.zip |
switch xfs_find_handle() to fget_light()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/xfs/xfs_ioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |