diff options
author | Brian Foster <bfoster@redhat.com> | 2015-05-29 09:05:49 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-05-29 09:05:49 +1000 |
commit | 463958af5c92d876fd2fe3c756f18bd0ce70b713 (patch) | |
tree | ad0faf953226bf32fe4943cc649d42f4eb509c69 /fs/xfs/xfs_log_recover.c | |
parent | 12d0714d4bdd591d9cd3bce692c831da2c2a0cfc (diff) | |
download | linux-463958af5c92d876fd2fe3c756f18bd0ce70b713.tar.gz linux-463958af5c92d876fd2fe3c756f18bd0ce70b713.tar.bz2 linux-463958af5c92d876fd2fe3c756f18bd0ce70b713.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 4f5784f85a5b..8abfd7881d8a 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c @@ -3091,8 +3091,8 @@ xlog_recover_do_icreate_pass2( XFS_AGB_TO_DADDR(mp, agno, agbno), length, 0)) return 0; - xfs_ialloc_inode_init(mp, NULL, buffer_list, agno, agbno, length, - be32_to_cpu(icl->icl_gen)); + xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno, length, + be32_to_cpu(icl->icl_gen)); return 0; } |