xfs: refactor inode verifier corruption error printing
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 23 Jan 2018 02:09:48 +0000 (18:09 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 29 Jan 2018 15:27:22 +0000 (07:27 -0800)
commit22431bf3dfbf44d7356933776eb486a6a01dea6f
tree5d4aecebcd8cdb86a29e317d2ddeadaff9ed4e85
parent67a3f6d01495bbf520186aa3ecd013ba02b81462
xfs: refactor inode verifier corruption error printing

Refactor inode verifier error reporting into a non-libxfs function so
that we aren't encoding the message format in libxfs.  This also
changes the kernel dmesg output to resemble buffer verifier errors
more closely.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/xfs_error.c
fs/xfs/xfs_error.h
fs/xfs/xfs_inode.c