summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_dquot.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-02-19 17:02:25 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2020-04-22 16:30:24 -0700
commitd0030452331fe6153962ef5404201c9074ee556e (patch)
tree5e48b22551cc119f7d6e0f61ce06440ccc2e41b3 /fs/xfs/xfs_dquot.h
parent3ec63ea5e6ac74575fe10277776e945282309f98 (diff)
xfs: cache quota grace period expiration times incore
Create an in-core timestamp that will tell us when a quota's grace period expires. In the subsequent bigtime patchset we will sacrifice precision in the on-disk grace period timestamp to enable larger timestamps across the filesystem, but we'll maintain an incore copy so that we can maintain precision so long as the filesystem isn't unmounted. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_dquot.h')
-rw-r--r--fs/xfs/xfs_dquot.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/xfs_dquot.h b/fs/xfs/xfs_dquot.h
index d924da98f66a..99c0d6266fd8 100644
--- a/fs/xfs/xfs_dquot.h
+++ b/fs/xfs/xfs_dquot.h
@@ -60,6 +60,14 @@ struct xfs_dquot {
xfs_qcnt_t q_prealloc_lo_wmark;
xfs_qcnt_t q_prealloc_hi_wmark;
int64_t q_low_space[XFS_QLOWSP_MAX];
+
+ /* incore block grace timeout */
+ time64_t q_btimer;
+ /* incore inode grace timeout */
+ time64_t q_itimer;
+ /* incore rt block grace timeout */
+ time64_t q_rtbtimer;
+
struct mutex q_qlock;
struct completion q_flush;
atomic_t q_pincount;