xfs: validate ondisk/incore dquot flags
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 14 Jul 2020 17:36:09 +0000 (10:36 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:24:14 +0000 (20:24 -0700)
commitafeda6000b0cb6d873920be4ce67f351f017a654
treeaf0dd7b31cfac831db0fa979ef2056084213468b
parentf959b5d037e71a4d69b5bf71faffa065d9269b4a
xfs: validate ondisk/incore dquot flags

While loading dquot records off disk, make sure that the quota type
flags are the same between the incore dquot and the ondisk dquot.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
fs/xfs/xfs_dquot.c