Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329008
b: refs/heads/master
c: 1ea65c9
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Sep 27, 2012
1 parent 0023f2c commit 7b18dac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 78f7d75e5dd9aa1027e90d0b71d394603933c2ed
refs/heads/master: 1ea65c96077f9bb5c0e5e224a4da751d269c5f94
10 changes: 5 additions & 5 deletions trunk/fs/xfs/xfs_dfrag.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ xfs_swapext(
{
xfs_inode_t *ip, *tip;
struct file *file, *tmp_file;
int error = 0;
int error = 0, fput_needed, fput_needed_tmp;

/* Pull information for the target fd */
file = fget((int)sxp->sx_fdtarget);
file = fget_light((int)sxp->sx_fdtarget, &fput_needed);
if (!file) {
error = XFS_ERROR(EINVAL);
goto out;
Expand All @@ -65,7 +65,7 @@ xfs_swapext(
goto out_put_file;
}

tmp_file = fget((int)sxp->sx_fdtmp);
tmp_file = fget_light((int)sxp->sx_fdtmp, &fput_needed_tmp);
if (!tmp_file) {
error = XFS_ERROR(EINVAL);
goto out_put_file;
Expand Down Expand Up @@ -105,9 +105,9 @@ xfs_swapext(
error = xfs_swap_extents(ip, tip, sxp);

out_put_tmp_file:
fput(tmp_file);
fput_light(tmp_file, fput_needed_tmp);
out_put_file:
fput(file);
fput_light(file, fput_needed);
out:
return error;
}
Expand Down

0 comments on commit 7b18dac

Please sign in to comment.