From 62d0b5b190407945dd70229aadb6e50bdf785e21 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Mon, 27 Aug 2012 12:59:52 -0400 Subject: [PATCH] --- yaml --- r: 329009 b: refs/heads/master c: 64e09fa2e1fef1696a8685c7aad7e0d3dd24ce71 h: refs/heads/master i: 329007: 0023f2c049be0666b78ac6e30b487871010d1f59 v: v3 --- [refs] | 2 +- trunk/fs/xfs/xfs_ioctl.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 10bc2e173a15..56df83158909 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1ea65c96077f9bb5c0e5e224a4da751d269c5f94 +refs/heads/master: 64e09fa2e1fef1696a8685c7aad7e0d3dd24ce71 diff --git a/trunk/fs/xfs/xfs_ioctl.c b/trunk/fs/xfs/xfs_ioctl.c index 0e0232c3b6d9..21483eac402d 100644 --- a/trunk/fs/xfs/xfs_ioctl.c +++ b/trunk/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;