summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-08-27 01:01:46 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2012-09-27 01:10:06 (GMT)
commit6bdf2954016ef7c1f4d4fa07a338ee197d9c3506 (patch)
treebc292e381755517853bfba8df7a79b64e08d8528 /fs
parent4557c669ef9801d96cf663331cdd1dcb8fa9c2f1 (diff)
downloadlinux-6bdf2954016ef7c1f4d4fa07a338ee197d9c3506.tar.xz
switch EXT4_IOC_MOVE_EXT to fget_light()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index a0ee682..39646f2 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -234,7 +234,7 @@ group_extend_out:
case EXT4_IOC_MOVE_EXT: {
struct move_extent me;
struct file *donor_filp;
- int err;
+ int err, fput_needed;
if (!(filp->f_mode & FMODE_READ) ||
!(filp->f_mode & FMODE_WRITE))
@@ -245,7 +245,7 @@ group_extend_out:
return -EFAULT;
me.moved_len = 0;
- donor_filp = fget(me.donor_fd);
+ donor_filp = fget_light(me.donor_fd, &fput_needed);
if (!donor_filp)
return -EBADF;
@@ -274,7 +274,7 @@ group_extend_out:
&me, sizeof(me)))
err = -EFAULT;
mext_out:
- fput(donor_filp);
+ fput_light(donor_filp, fput_needed);
return err;
}