mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 01:51:53 +00:00
[XFS] Fix size argument in kmem_free().
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>
This commit is contained in:
parent
3f368a0d58
commit
fe6c1e7240
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user