Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329004
b: refs/heads/master
c: 8319aa9
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Sep 27, 2012
1 parent 2c4e7f4 commit 9435632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 515e0d6634086d61ae846f0e8785b6f0220f3422
refs/heads/master: 8319aa9127a1282b24c3ece473a058d246f35b0d
6 changes: 3 additions & 3 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2350,7 +2350,7 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
struct btrfs_key key;
u32 nritems;
int slot;
int ret;
int ret, fput_needed;
u64 len = olen;
u64 bs = root->fs_info->sb->s_blocksize;
u64 hint_byte;
Expand All @@ -2376,7 +2376,7 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
if (ret)
return ret;

src_file = fget(srcfd);
src_file = fget_light(srcfd, &fput_needed);
if (!src_file) {
ret = -EBADF;
goto out_drop_write;
Expand Down Expand Up @@ -2724,7 +2724,7 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
vfree(buf);
btrfs_free_path(path);
out_fput:
fput(src_file);
fput_light(src_file, fput_needed);
out_drop_write:
mnt_drop_write_file(file);
return ret;
Expand Down

0 comments on commit 9435632

Please sign in to comment.