Commit 0d309791 authored by Darrick J. Wong's avatar Darrick J. Wong Committed by Dave Chinner

xfs: set *stat=1 after iroot realloc

If we make the inode root block of a btree unfull by expanding the
root, we must set *stat to 1 to signal success, rather than leaving
it uninitialized.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent f4a0660d
...@@ -2871,6 +2871,7 @@ xfs_btree_make_block_unfull( ...@@ -2871,6 +2871,7 @@ xfs_btree_make_block_unfull(
if (numrecs < cur->bc_ops->get_dmaxrecs(cur, level)) { if (numrecs < cur->bc_ops->get_dmaxrecs(cur, level)) {
/* A root block that can be made bigger. */ /* A root block that can be made bigger. */
xfs_iroot_realloc(ip, 1, cur->bc_private.b.whichfork); xfs_iroot_realloc(ip, 1, cur->bc_private.b.whichfork);
*stat = 1;
} else { } else {
/* A root block that needs replacing */ /* A root block that needs replacing */
int logflags = 0; int logflags = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment