xfs: handle sparse inode chunks in icreate log recovery
authorBrian Foster <bfoster@redhat.com>
Thu, 28 May 2015 23:06:30 +0000 (09:06 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 28 May 2015 23:06:30 +0000 (09:06 +1000)
Recovery of icreate transactions assumes hardcoded values for the inode
count and chunk length.

Sparse inode chunks are allocated in units of m_ialloc_min_blks. Update
the icreate validity checks to allow for appropriately sized inode
chunks and verify the inode count matches what is expected based on the
extent length rather than assuming a hardcoded count.

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_log_recover.c

Simple merge