diff options
Diffstat (limited to 'fs/xfs/xfs_buf.h')
-rw-r--r-- | fs/xfs/xfs_buf.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_buf.h b/fs/xfs/xfs_buf.h index 995339534db6..5edcfbaddb26 100644 --- a/fs/xfs/xfs_buf.h +++ b/fs/xfs/xfs_buf.h | |||
@@ -369,6 +369,13 @@ static inline void xfs_buf_relse(xfs_buf_t *bp) | |||
369 | xfs_buf_rele(bp); | 369 | xfs_buf_rele(bp); |
370 | } | 370 | } |
371 | 371 | ||
372 | static inline int | ||
373 | xfs_buf_verify_cksum(struct xfs_buf *bp, unsigned long cksum_offset) | ||
374 | { | ||
375 | return xfs_verify_cksum(bp->b_addr, BBTOB(bp->b_length), | ||
376 | cksum_offset); | ||
377 | } | ||
378 | |||
372 | /* | 379 | /* |
373 | * Handling of buftargs. | 380 | * Handling of buftargs. |
374 | */ | 381 | */ |