xfs: pass full xfs_dqblk to repair during quotacheck
authorEric Sandeen <sandeen@sandeen.net>
Mon, 7 May 2018 16:20:17 +0000 (09:20 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 May 2018 17:04:01 +0000 (10:04 -0700)
commit48fa1db87f730da1aed2d3df0cc8c33c7c133b4b
treecb02e21865d714545166ead10e4b21f48c1b2bfc
parent57ab324553bbfedc8e732eb570edfac0f5cfe57e
xfs: pass full xfs_dqblk to repair during quotacheck

It's a bit dicey to pass in the smaller xfs_disk_dquot and then cast it to
something larger; pass in the full xfs_dqblk so we know the caller has sent
us the right thing.  Rename the function to xfs_dqblk_repair for
clarity.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_dquot_buf.c
fs/xfs/libxfs/xfs_quota_defs.h
fs/xfs/xfs_qm.c