Fixes a regression introduced by:
88fc730 xfs: use and update the finobt on inode allocation
which passed the non-swapped version of agi->agi_newino to
xfs_inobt_lookup()
Caught by make C=2, ftw!
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
* most recently allocated inode.
*/
if (agi->agi_newino != cpu_to_be32(NULLAGINO)) {
- error = xfs_inobt_lookup(cur, agi->agi_newino,
+ error = xfs_inobt_lookup(cur,
+ be32_to_cpu(agi->agi_newino),
XFS_LOOKUP_EQ, &i);
if (error)
goto error_cur;