xfs: Add verifiers to dir2 data readahead.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Phil White <pwhite@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:
Dave Chinner 2012-11-12 22:54:18 +11:00 committed by Ben Myers
parent d9392a4bb7
commit da6958c873
6 changed files with 26 additions and 12 deletions

View file

@ -185,7 +185,7 @@ __xfs_dir2_data_check(
return 0;
}
static void
void
xfs_dir2_data_verify(
struct xfs_buf *bp)
{
@ -217,6 +217,17 @@ xfs_dir2_data_read(
XFS_DATA_FORK, xfs_dir2_data_verify);
}
int
xfs_dir2_data_readahead(
struct xfs_trans *tp,
struct xfs_inode *dp,
xfs_dablk_t bno,
xfs_daddr_t mapped_bno)
{
return xfs_da_reada_buf(tp, dp, bno, mapped_bno,
XFS_DATA_FORK, xfs_dir2_data_verify);
}
/*
* Given a data block and an unused entry from that block,
* return the bestfree entry if any that corresponds to it.