Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140075
b: refs/heads/master
c: ac12b4e
h: refs/heads/master
i:
  140073: 3c5232e
  140071: 1122055
v: v3
  • Loading branch information
Eric Sandeen authored and Felix Blyakher committed Jan 27, 2009
1 parent 1f25e97 commit 0100ef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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: 5e1065726e0350097d8fe18dc2fcf86516a0a1f2
refs/heads/master: ac12b4e25eedf855f277741d5ac0c3c88981a703
10 changes: 1 addition & 9 deletions trunk/fs/xfs/xfs_dfrag.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,11 @@ xfs_swapext(
struct file *file, *target_file;
int error = 0;

sxp = kmem_alloc(sizeof(xfs_swapext_t), KM_MAYFAIL);
if (!sxp) {
error = XFS_ERROR(ENOMEM);
goto out;
}

/* Pull information for the target fd */
file = fget((int)sxp->sx_fdtarget);
if (!file) {
error = XFS_ERROR(EINVAL);
goto out_free_sxp;
goto out;
}

if (!(file->f_mode & FMODE_WRITE) || (file->f_flags & O_APPEND)) {
Expand Down Expand Up @@ -109,8 +103,6 @@ xfs_swapext(
fput(target_file);
out_put_file:
fput(file);
out_free_sxp:
kmem_free(sxp);
out:
return error;
}
Expand Down

0 comments on commit 0100ef6

Please sign in to comment.