xfs: update inode allocation/free transaction reservations for finobt
authorBrian Foster <bfoster@redhat.com>
Thu, 24 Apr 2014 06:00:52 +0000 (16:00 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 24 Apr 2014 06:00:52 +0000 (16:00 +1000)
commit9d43b180af67cccd4bd1342f7f54f8131515b0a1
treef4bb0ee658249dc78c5465a850e53add0384b236
parentaafc3c24652924ea951d215d04a3f42e832e9d7d
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>
fs/xfs/xfs_inode.c
fs/xfs/xfs_trans_resv.c
fs/xfs/xfs_trans_space.h
This page took 0.025961 seconds and 5 git commands to generate.