diff options
author | Catherine Hoang <catherine.hoang@oracle.com> | 2022-06-22 14:28:52 -0500 |
---|---|---|
committer | Eric Sandeen <sandeen@sandeen.net> | 2022-06-22 14:28:52 -0500 |
commit | 08b9530a875828647814e8d45972ca48fcb7240d (patch) | |
tree | 5cb27d04c36485248d361f2a8a74d3a904ae2a1e | |
parent | 52396d814f9de6824bc681dc5a7476ef800556ed (diff) | |
download | xfsprogs-dev-08b9530a875828647814e8d45972ca48fcb7240d.tar.gz |
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 <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>
-rw-r--r-- | db/field.c | 3 | ||||
-rw-r--r-- | libxfs/xfs_quota_defs.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/db/field.c b/db/field.c index 6a25b87246..77cab90223 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 3076cd74fc..cb035da3f9 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; |