aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-08-02 21:01:25 -0400
committerDave Chinner <david@fromorbit.com>2016-08-02 21:01:25 -0400
commit0d309791bdc0a92f1db5dfc171d884a6b8583702 (patch)
treef52ddf01b4a17f722c26d84620e048a56eb7d279
parentf4a0660de34451e30f0bb8b65946b79c8bd375ca (diff)
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>
-rw-r--r--fs/xfs/libxfs/xfs_btree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c
index 07eeb0b4ca74..f5ff95a18e9d 100644
--- a/fs/xfs/libxfs/xfs_btree.c
+++ b/fs/xfs/libxfs/xfs_btree.c
@@ -2871,6 +2871,7 @@ xfs_btree_make_block_unfull(
2871 if (numrecs < cur->bc_ops->get_dmaxrecs(cur, level)) { 2871 if (numrecs < cur->bc_ops->get_dmaxrecs(cur, level)) {
2872 /* A root block that can be made bigger. */ 2872 /* A root block that can be made bigger. */
2873 xfs_iroot_realloc(ip, 1, cur->bc_private.b.whichfork); 2873 xfs_iroot_realloc(ip, 1, cur->bc_private.b.whichfork);
2874 *stat = 1;
2874 } else { 2875 } else {
2875 /* A root block that needs replacing */ 2876 /* A root block that needs replacing */
2876 int logflags = 0; 2877 int logflags = 0;