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>
此提交包含在:
@@ -237,4 +237,6 @@ typedef int (*xfs_qm_dqiterate_fn)(struct xfs_dquot *dq,
|
||||
int xfs_qm_dqiterate(struct xfs_mount *mp, xfs_dqtype_t type,
|
||||
xfs_qm_dqiterate_fn iter_fn, void *priv);
|
||||
|
||||
time64_t xfs_dquot_set_timeout(struct xfs_mount *mp, time64_t timeout);
|
||||
|
||||
#endif /* __XFS_DQUOT_H__ */
|
||||
|
新增問題並參考
封鎖使用者