Commit 9554960c authored by Stephen Lord's avatar Stephen Lord Committed by Nathan Scott

[XFS] when logging attribute extents, use the correct size for the allocation!

SGI Modid: 2.5.x-xfs:slinx:134098a
parent b54db72d
...@@ -454,7 +454,7 @@ xfs_inode_item_format( ...@@ -454,7 +454,7 @@ xfs_inode_item_format(
/* /*
* Need to endian flip before logging * Need to endian flip before logging
*/ */
ext_buffer = kmem_alloc(ip->i_df.if_bytes, ext_buffer = kmem_alloc(ip->i_afp->if_bytes,
KM_SLEEP); KM_SLEEP);
iip->ili_aextents_buf = ext_buffer; iip->ili_aextents_buf = ext_buffer;
vecp->i_addr = (xfs_caddr_t)ext_buffer; vecp->i_addr = (xfs_caddr_t)ext_buffer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment