From 0100ef6726f193123ba51de68cdb36f6df8d6be2 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Sun, 25 Jan 2009 20:53:00 -0600 Subject: [PATCH] --- yaml --- r: 140075 b: refs/heads/master c: ac12b4e25eedf855f277741d5ac0c3c88981a703 h: refs/heads/master i: 140073: 3c5232eb93e579718c6118100bb41eb43c37069d 140071: 1122055da65f281c99a6eb3228f1ecf5330a4d5b v: v3 --- [refs] | 2 +- trunk/fs/xfs/xfs_dfrag.c | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/[refs] b/[refs] index cc2315e35f9c..45c06e0e267c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5e1065726e0350097d8fe18dc2fcf86516a0a1f2 +refs/heads/master: ac12b4e25eedf855f277741d5ac0c3c88981a703 diff --git a/trunk/fs/xfs/xfs_dfrag.c b/trunk/fs/xfs/xfs_dfrag.c index b4c1ee713492..f8278cfcc1d3 100644 --- a/trunk/fs/xfs/xfs_dfrag.c +++ b/trunk/fs/xfs/xfs_dfrag.c @@ -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)) { @@ -109,8 +103,6 @@ xfs_swapext( fput(target_file); out_put_file: fput(file); - out_free_sxp: - kmem_free(sxp); out: return error; }