]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: pass inode count through ordered icreate log item
authorBrian Foster <bfoster@redhat.com>
Thu, 28 May 2015 23:05:49 +0000 (09:05 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 23 Jun 2015 05:07:35 +0000 (15:07 +1000)
commitb291dee0a29a6515f4518fbe9c44beb25f8a93b6
treee83f7305a91498a284ae05b29adaef473abdf57f
parentc21954f354f18959c246c5edb7e115415949cef6
xfs: pass inode count through ordered icreate log item

v5 superblocks use an ordered log item for logging the initialization of
inode chunks. The icreate log item is currently hardcoded to an inode
count of 64 inodes.

The agbno and extent length are used to initialize the inode chunk from
log recovery. While an incorrect inode count does not lead to bad inode
chunk initialization, we should pass the correct inode count such that log
recovery has enough data to perform meaningful validity checks on the
chunk.

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
libxfs/xfs_ialloc.h