diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-08-17 09:58:36 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-09-15 20:52:40 -0700 |
commit | 11d8a9190275855f79d62093d789e962cc7228fb (patch) | |
tree | 19e96231f8662f1e1e30b63f7045215551a51a9b /fs/xfs/xfs_qm.h | |
parent | 876fdc7c4f366a709ac272ef3336ae7dce58f2af (diff) | |
download | linux-11d8a9190275855f79d62093d789e962cc7228fb.tar.gz linux-11d8a9190275855f79d62093d789e962cc7228fb.tar.bz2 linux-11d8a9190275855f79d62093d789e962cc7228fb.zip |
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. Note that we'll refactor the
default grace period timer separately.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_qm.h')
-rw-r--r-- | fs/xfs/xfs_qm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/xfs_qm.h b/fs/xfs/xfs_qm.h index 9c078c35d924..e3dabab44097 100644 --- a/fs/xfs/xfs_qm.h +++ b/fs/xfs/xfs_qm.h @@ -65,6 +65,10 @@ struct xfs_quotainfo { struct xfs_def_quota qi_grp_default; struct xfs_def_quota qi_prj_default; struct shrinker qi_shrinker; + + /* Minimum and maximum quota expiration timestamp values. */ + time64_t qi_expiry_min; + time64_t qi_expiry_max; }; static inline struct radix_tree_root * |