]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: update inode allocation/free transaction reservations for finobt
authorBrian Foster <bfoster@redhat.com>
Tue, 20 May 2014 21:53:18 +0000 (07:53 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 20 May 2014 21:53:18 +0000 (07:53 +1000)
commit0f88d64ae107b91d77be8d0a795b4900d4dfc82d
tree366524d058a1d5afa2d1f9e21123c831ea0657fa
parentc0a4c227cd016f07f88833885c2016c87b58171f
xfs: update inode allocation/free transaction reservations for finobt

Create the xfs_calc_finobt_res() helper to calculate the finobt log
reservation for inode allocation and free. Update
XFS_IALLOC_SPACE_RES() to reserve blocks for the additional finobt
insertion on inode allocation. Create XFS_IFREE_SPACE_RES() to
reserve blocks for the potential finobt record insertion on inode
free (i.e., if an inode chunk was previously fully allocated).

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/xfs_trans_space.h
libxfs/xfs_trans_resv.c