]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: update the finobt on inode free
authorBrian Foster <bfoster@redhat.com>
Tue, 20 May 2014 21:57:24 +0000 (07:57 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 20 May 2014 21:57:24 +0000 (07:57 +1000)
commit1bb93fd1dc077b983e6a88435ef1b1c6b8616b2a
tree0e53c8a3b2b10c34f81d55785f43b4c75f719c28
parenteb9a297a8a18b4b6f54641469ff8050e4a05c563
xfs: update the finobt on inode free

An inode free operation can have several effects on the finobt. If
all inodes have been freed and the chunk deallocated, we remove the
finobt record. If the inode chunk was previously full, we must
insert a new record based on the existing inobt record. Otherwise,
we modify the record in place.

Create the xfs_ifree_finobt() function to identify the potential
scenarios and update the finobt appropriately.

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