Hi all, During my review of Dave's patches that fixed an inode recovery issue with nrext64 enabled on s390x, it occurred to me that recovery doesn't actually validate the ondisk dquot record after a replay. In the past we didn't do that for inodes or buffers either, but now we do. This series adds the missing validation for dquots, and cleans up some open coded pointer handling to avoid leaving logic bombs. If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below. This has been lightly tested with fstests. Enjoy! Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=dquot-recovery-checking-6.7 --- fs/xfs/xfs_dquot.c | 5 +++-- fs/xfs/xfs_dquot_item_recover.c | 21 ++++++++++++++++++--- 2 files changed, 21 insertions(+), 5 deletions(-)