OSDN Git Service

xfs: print specific dqblk that failed verifiers
authorEric Sandeen <sandeen@sandeen.net>
Mon, 7 May 2018 16:20:47 +0000 (09:20 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 May 2018 17:04:01 +0000 (10:04 -0700)
commit72c5c5f6d01c859dfe16c4910a5222ed9393c37c
tree6766dc02aaac073a1a03ef8367d48a3395037db3
parent7224fa482a6daa0558792e03a209e08d34690a26
xfs: print specific dqblk that failed verifiers

Rather than printing the top of the buffer that held a corrupted dqblk,
restructure things to print out the specific one that failed by pushing
the calls to the verifier_error function down into the verifier which
iterates over the buffer and detects the error.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
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