From: Catherine Hoang Date: Wed, 22 Jun 2022 19:28:52 +0000 (-0500) Subject: xfs: remove warning counters from struct xfs_dquot_res X-Git-Tag: v5.19.0-rc0~40 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=08b9530a875828647814e8d45972ca48fcb7240d;p=thirdparty%2Fxfsprogs-dev.git xfs: remove warning counters from struct xfs_dquot_res 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 Reviewed-by: Darrick J. Wong Reviewed-by: Allison Henderson Signed-off-by: Dave Chinner Signed-off-by: Eric Sandeen --- diff --git a/db/field.c b/db/field.c index 6a25b8724..77cab9022 100644 --- a/db/field.c +++ b/db/field.c @@ -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 }, diff --git a/libxfs/xfs_quota_defs.h b/libxfs/xfs_quota_defs.h index 3076cd74f..cb035da3f 100644 --- a/libxfs/xfs_quota_defs.h +++ b/libxfs/xfs_quota_defs.h @@ -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;