diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-07-14 10:37:32 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-07-28 20:24:14 -0700 |
commit | 19dce7eaef7f8fdecab965afacc7a7bf3eb4e0a1 (patch) | |
tree | 5125284e38eab85f0785dd0a23f32ff82b9a4f42 /fs/xfs/xfs_dquot.h | |
parent | c8c45fb2f614e1d30526c5aa304352923ad76416 (diff) | |
download | linux-stable-19dce7eaef7f8fdecab965afacc7a7bf3eb4e0a1.tar.gz linux-stable-19dce7eaef7f8fdecab965afacc7a7bf3eb4e0a1.tar.bz2 linux-stable-19dce7eaef7f8fdecab965afacc7a7bf3eb4e0a1.zip |
xfs: stop using q_core timers in the quota code
Add timers fields to the incore dquot, and use that instead of the ones
in qcore. This eliminates a bunch of endian conversions and will
eventually allow us to remove qcore entirely.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_dquot.h')
-rw-r--r-- | fs/xfs/xfs_dquot.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_dquot.h b/fs/xfs/xfs_dquot.h index afac622c0fde..69dbf3d95bf3 100644 --- a/fs/xfs/xfs_dquot.h +++ b/fs/xfs/xfs_dquot.h @@ -39,6 +39,13 @@ struct xfs_dquot_res { xfs_qcnt_t softlimit; /* + * For root dquots, this is the default grace period, in seconds. + * Otherwise, this is when the quota grace period expires, + * in seconds since the Unix epoch. + */ + time64_t timer; + + /* * For root dquots, this is the maximum number of warnings that will * be issued for this quota type. Otherwise, this is the number of * warnings issued against this quota. Note that none of this is |