]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - repair/phase6.c
xfs_repair: include any realloc'ed buffers in final putbuf
authorMike Grant <mggr@pml.ac.uk>
Thu, 30 Jul 2015 23:14:58 +0000 (09:14 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 30 Jul 2015 23:14:58 +0000 (09:14 +1000)
commit90dd8310800eed12f82bf622a0daa92162265917
tree26511df134caa3bd6cf17f3b3f7839e261fe9e95
parentde5a3f467f9e3417f149f3bcbef7717f609796d8
xfs_repair: include any realloc'ed buffers in final putbuf

The realloc code included in commit 95dff16b1 potentially introduces
extra buffers to bplist.  These should be dealt with at the end of the
longform_dir2_entry_check function.  This replaces the originally estimated
number of entries (freetab->naents) with the actual number finally allocated
(num_bps).

Signed-off-by: Mike Grant <mggr@pml.ac.uk>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/phase6.c