From: Darrick J. Wong Date: Wed, 10 Aug 2016 01:29:36 +0000 (+1000) Subject: xfs: set *stat=1 after iroot realloc X-Git-Tag: v4.8.0-rc1~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cff8bf94d0aa4d8bc50d3b3fee2c086ceebc0988;p=thirdparty%2Fxfsprogs-dev.git xfs: set *stat=1 after iroot realloc Source kernel commit: 0d309791bdc0a92f1db5dfc171d884a6b8583702 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 Reviewed-by: Brian Foster Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- diff --git a/libxfs/xfs_btree.c b/libxfs/xfs_btree.c index ea755062d..64f2e9313 100644 --- a/libxfs/xfs_btree.c +++ b/libxfs/xfs_btree.c @@ -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;