]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove warning counters from struct xfs_dquot_res
authorCatherine Hoang <catherine.hoang@oracle.com>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
Source kernel commit: 2e06df552a7cba13eb0046b9116a9aa26001ee2c

Warning counts are not used anywhere in the kernel. In addition, there
are no use cases, test coverage, or documentation for this functionality.
Remove the 'warnings' field from struct xfs_dquot_res and any other
related code.

Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/field.c
libxfs/xfs_quota_defs.h

index 6a25b87246bbb0894448cb5f9a4c9ca1139f4f1d..77cab902239159b74a8e17f34c1c36a4f7d490b8 100644 (file)
@@ -334,7 +334,8 @@ const ftattr_t      ftattrtab[] = {
          FTARG_SIGNED, NULL, NULL },
        { FLDT_QCNT, "qcnt", fp_num, "%llu", SI(bitsz(xfs_qcnt_t)), 0, NULL,
          NULL },
-       { FLDT_QWARNCNT, "qwarncnt", fp_num, "%u", SI(bitsz(xfs_qwarncnt_t)), 0,
+       /* warning counter field removed */
+       { FLDT_QWARNCNT, "qwarncnt", fp_num, "%u", SI(bitsz(uint16_t)), 0,
          NULL, NULL },
        { FLDT_SB, "sb", NULL, (char *)sb_flds, sb_size, FTARG_SIZE, NULL,
          sb_flds },
index 3076cd74fcaa21aa787576409a2ef7e541cc20f7..cb035da3f990b0d9db135678c7a09d70040cde58 100644 (file)
@@ -16,7 +16,6 @@
  * and quota-limits. This is a waste in the common case, but hey ...
  */
 typedef uint64_t       xfs_qcnt_t;
-typedef uint16_t       xfs_qwarncnt_t;
 
 typedef uint8_t                xfs_dqtype_t;