summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_ondisk.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-02-19 17:02:21 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2020-03-03 18:47:46 -0800
commitbfc9e321ecd4f32e94a7477ef95eb11692baa54e (patch)
tree4bbf25c50f045a14f87e2f368104900c9d79e2cb /fs/xfs/xfs_ondisk.h
parent02af38e85a6b995e5c9167df7a61fe1df7922a79 (diff)
xfs: refactor quota expiration timer modification
Define explicit limits on the range of quota grace period expiration timeouts and refactor the code that modifies the timeouts into helpers that clamp the values appropriately. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_ondisk.h')
-rw-r--r--fs/xfs/xfs_ondisk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_ondisk.h b/fs/xfs/xfs_ondisk.h
index 48a64fa49f91..38ccffcf3336 100644
--- a/fs/xfs/xfs_ondisk.h
+++ b/fs/xfs/xfs_ondisk.h
@@ -25,6 +25,8 @@ xfs_check_limits(void)
/* make sure timestamp limits are correct */
XFS_CHECK_VALUE(XFS_INO_TIME_MIN, -2147483648LL);
XFS_CHECK_VALUE(XFS_INO_TIME_MAX, 2147483647LL);
+ XFS_CHECK_VALUE(XFS_DQ_TIMEOUT_MIN, 1LL);
+ XFS_CHECK_VALUE(XFS_DQ_TIMEOUT_MAX, 4294967295LL);
}
static inline void __init