diff options
author | Eric Sandeen <sandeen@redhat.com> | 2016-01-04 08:10:19 +0300 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-01-04 08:10:19 +0300 |
commit | 233135b763db7c64d07b728a9c66745fb0376275 (patch) | |
tree | 0b091cd4c785f3fad2d245d9fc9a842f3067681b /fs/xfs/libxfs/xfs_inode_buf.c | |
parent | 1d4292bfdc77f4f7c520064be15d0c46bd025fd2 (diff) | |
download | linux-233135b763db7c64d07b728a9c66745fb0376275.tar.xz |
xfs: print name of verifier if it fails
This adds a name to each buf_ops structure, so that if
a verifier fails we can print the type of verifier that
failed it. Should be a slight debugging aid, I hope.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_inode_buf.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_inode_buf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_inode_buf.c b/fs/xfs/libxfs/xfs_inode_buf.c index 268c00f4f83a..1b8d98a915c4 100644 --- a/fs/xfs/libxfs/xfs_inode_buf.c +++ b/fs/xfs/libxfs/xfs_inode_buf.c @@ -132,11 +132,13 @@ xfs_inode_buf_write_verify( } const struct xfs_buf_ops xfs_inode_buf_ops = { + .name = "xfs_inode", .verify_read = xfs_inode_buf_read_verify, .verify_write = xfs_inode_buf_write_verify, }; const struct xfs_buf_ops xfs_inode_buf_ra_ops = { + .name = "xxfs_inode_ra", .verify_read = xfs_inode_buf_readahead_verify, .verify_write = xfs_inode_buf_write_verify, }; |