|
@@ -250,6 +250,7 @@ xfs_ialloc_inode_init(
|
|
|
struct xfs_mount *mp,
|
|
|
struct xfs_trans *tp,
|
|
|
struct list_head *buffer_list,
|
|
|
+ int icount,
|
|
|
xfs_agnumber_t agno,
|
|
|
xfs_agblock_t agbno,
|
|
|
xfs_agblock_t length,
|
|
@@ -305,7 +306,7 @@ xfs_ialloc_inode_init(
|
|
|
* they track in the AIL as if they were physically logged.
|
|
|
*/
|
|
|
if (tp)
|
|
|
- xfs_icreate_log(tp, agno, agbno, mp->m_ialloc_inos,
|
|
|
+ xfs_icreate_log(tp, agno, agbno, icount,
|
|
|
mp->m_sb.sb_inodesize, length, gen);
|
|
|
} else
|
|
|
version = 2;
|
|
@@ -525,8 +526,8 @@ xfs_ialloc_ag_alloc(
|
|
|
* rather than a linear progression to prevent the next generation
|
|
|
* number from being easily guessable.
|
|
|
*/
|
|
|
- error = xfs_ialloc_inode_init(args.mp, tp, NULL, agno, args.agbno,
|
|
|
- args.len, prandom_u32());
|
|
|
+ error = xfs_ialloc_inode_init(args.mp, tp, NULL, newlen, agno,
|
|
|
+ args.agbno, args.len, prandom_u32());
|
|
|
|
|
|
if (error)
|
|
|
return error;
|