From: Darrick J. Wong Date: Thu, 16 Feb 2023 21:52:53 +0000 (-0800) Subject: xfs_spaceman: fix broken -g behavior in freesp command X-Git-Tag: origin/for-next_2023-03-01~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a77e0e7c57e8c0a5e7e6877a2612d60b5805f44;p=thirdparty%2Fxfsprogs-dev.git xfs_spaceman: fix broken -g behavior in freesp command Don't zero out the histogram bucket count when turning on group summary mode -- this will screw up the data structures and it's pointless. Signed-off-by: Darrick J. Wong Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- diff --git a/spaceman/freesp.c b/spaceman/freesp.c index 423568a42..70dcdb5c9 100644 --- a/spaceman/freesp.c +++ b/spaceman/freesp.c @@ -284,7 +284,6 @@ init( speced = 1; break; case 'g': - histcount = 0; gflag++; break; case 'h':