]> err.no Git - linux-2.6/commitdiff
[XFS] Fix size argument in kmem_free().
authorMandy Kirkconnell <alkirkco@sgi.com>
Fri, 9 Jun 2006 04:51:25 +0000 (14:51 +1000)
committerNathan Scott <nathans@sgi.com>
Fri, 9 Jun 2006 04:51:25 +0000 (14:51 +1000)
SGI-PV: 952291
SGI-Modid: xfs-linux-melb:xfs-kern:209807a

Signed-off-by: Mandy Kirkconnell <alkirkco@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/xfs_inode.c

index 020de5637e0688d42c5b6c7e1870a326cf607e31..f5284453441bba587e8346f5c868bdae24b762f2 100644 (file)
@@ -4181,7 +4181,7 @@ xfs_iext_direct_to_inline(
         */
        memcpy(ifp->if_u2.if_inline_ext, ifp->if_u1.if_extents,
                nextents * sizeof(xfs_bmbt_rec_t));
-       kmem_free(ifp->if_u1.if_extents, KM_SLEEP);
+       kmem_free(ifp->if_u1.if_extents, ifp->if_real_bytes);
        ifp->if_u1.if_extents = ifp->if_u2.if_inline_ext;
        ifp->if_real_bytes = 0;
 }