forked from luck/tmp_suning_uos_patched
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: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
f4a0660de3
commit
0d309791bd
|
@ -2871,6 +2871,7 @@ xfs_btree_make_block_unfull(
|
|||
if (numrecs < cur->bc_ops->get_dmaxrecs(cur, level)) {
|
||||
/* A root block that can be made bigger. */
|
||||
xfs_iroot_realloc(ip, 1, cur->bc_private.b.whichfork);
|
||||
*stat = 1;
|
||||
} else {
|
||||
/* A root block that needs replacing */
|
||||
int logflags = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user