]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: include any realloc'ed buffers in final putbuf
authorMike Grant <mggr@pml.ac.uk>
Thu, 2 Jul 2015 04:36:57 +0000 (14:36 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 2 Jul 2015 04:36:57 +0000 (14:36 +1000)
commit5c4532b99b8b8cdba7f2a99fd259257446608bb4
treec49c0bddf39a56ccc6b03f95e6f2a3fab2ceaced
parent47918c246b781c0adbd509ac26366d32eeb7c9c8
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