[PATCH] sub sd_rgrps When clear rgrp

From: Yang Bin
Date: Wed Jun 26 2019 - 23:07:16 EST


From: " Yang Bin "<yang.bin18@xxxxxxxxxx>

When clear rgrp,sub sd_rgrps after erased from rindex_tree

Signed-off-by: Yang Bin <yang.bin18@xxxxxxxxxx>
---
fs/gfs2/rgrp.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
index 15d6e32..a4b2e83
--- a/fs/gfs2/rgrp.c
+++ b/fs/gfs2/rgrp.c
@@ -730,6 +730,7 @@ void gfs2_clear_rgrpd(struct gfs2_sbd *sdp)
gl = rgd->rd_gl;

rb_erase(n, &sdp->sd_rindex_tree);
+ sdp->sd_rgrps--;

if (gl) {
glock_clear_object(gl, rgd);
--
1.8.3.1