summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf.h
diff options
context:
space:
mode:
authorDarrick J. Wong2018-01-08 19:51:08 +0100
committerDarrick J. Wong2018-01-08 19:54:47 +0100
commitb55725974c9d3a5afcdf83daff6fba7d3f91ffca (patch)
tree6d1d7fb37a1a9076713111c95a3491b0634490d5 /fs/xfs/xfs_buf.h
parentxfs: fail out of xfs_attr3_leaf_lookup_int if it looks corrupt (diff)
downloadkernel-qcow2-linux-b55725974c9d3a5afcdf83daff6fba7d3f91ffca.tar.gz
kernel-qcow2-linux-b55725974c9d3a5afcdf83daff6fba7d3f91ffca.tar.xz
kernel-qcow2-linux-b55725974c9d3a5afcdf83daff6fba7d3f91ffca.zip
xfs: create a new buf_ops pointer to verify structure metadata
Expose all metadata structure buffer verifier functions via buf_ops. These will be used by the online scrub mechanism to look for problems with buffers that are already sitting around in memory. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_buf.h')
-rw-r--r--fs/xfs/xfs_buf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_buf.h b/fs/xfs/xfs_buf.h
index 6f907a365f85..5b5b4861c729 100644
--- a/fs/xfs/xfs_buf.h
+++ b/fs/xfs/xfs_buf.h
@@ -140,6 +140,7 @@ struct xfs_buf_ops {
char *name;
void (*verify_read)(struct xfs_buf *);
void (*verify_write)(struct xfs_buf *);
+ xfs_failaddr_t (*verify_struct)(struct xfs_buf *bp);
};
typedef struct xfs_buf {