summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dquot.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-07-16 03:39:51 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2020-07-29 05:24:14 +0200
commita990f7a84edc9941956ea3c1dfb89733c80f9ad0 (patch)
tree6d1c7327bb9fd6d474a2149a859cdb8eb6d3610f /fs/xfs/xfs_dquot.c
parentxfs: create xfs_dqtype_t to represent quota types (diff)
downloadlinux-a990f7a84edc9941956ea3c1dfb89733c80f9ad0.tar.xz
linux-a990f7a84edc9941956ea3c1dfb89733c80f9ad0.zip
xfs: improve ondisk dquot flags checking
Create an XFS_DQTYPE_ANY mask for ondisk dquots flags, and use that to ensure that we never accept any garbage flags when we're loading dquots. While we're at it, restructure the quota type flag checking to use the proper masking. Note that I plan to add y2038 support soon, which will require a new xfs_dqtype_t flag for extended timestamp support, hence all the work to make the type masking work correctly. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_dquot.c')
0 files changed, 0 insertions, 0 deletions