diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2014-10-13 10:21:53 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-10-13 10:21:53 +1100 |
commit | a8b1ee8bafc765ebf029d03c5479a69aebff9693 (patch) | |
tree | f348c70a5502f2f5e5a245a6f1f3f9c196eae17d /fs/xfs/xfs_bmap_util.c | |
parent | 52177937e9ac4573391143065b250403d3a6ae4b (diff) |
xfs: fix agno increment in xfs_inumbers() loop
caused a regression in xfs_inumbers, which in turn broke
xfsdump, causing incomplete dumps.
The loop in xfs_inumbers() needs to fill the user-supplied
buffers, and iterates via xfs_btree_increment, reading new
ags as needed.
But the first time through the loop, if xfs_btree_increment()
succeeds, we continue, which triggers the ++agno at the bottom
of the loop, and we skip to soon to the next ag - without
the proper setup under next_ag to read the next ag.
Fix this by removing the agno increment from the loop conditional,
and only increment agno if we have actually hit the code under
the next_ag: target.
Cc: stable@vger.kernel.org
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
0 files changed, 0 insertions, 0 deletions