]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs_spaceman: fix broken -g behavior in freesp command
authorDarrick J. Wong <djwong@kernel.org>
Thu, 16 Feb 2023 21:52:53 +0000 (13:52 -0800)
committerCarlos Maiolino <cem@kernel.org>
Thu, 23 Feb 2023 08:54:27 +0000 (09:54 +0100)
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 <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
spaceman/freesp.c

index 423568a42488d7518ee316b81c6914c807a6afc9..70dcdb5c923753587b66e59c2f86625d480d30eb 100644 (file)
@@ -284,7 +284,6 @@ init(
                        speced = 1;
                        break;
                case 'g':
-                       histcount = 0;
                        gflag++;
                        break;
                case 'h':