aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_da_btree.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-11-12 06:54:18 -0500
committerBen Myers <bpm@sgi.com>2012-11-15 22:34:57 -0500
commitda6958c873ecd846d71fafbfe0f6168bb9c2c99e (patch)
tree638e8ec75ef0592dd896f74e2b2215af3021bf0a /fs/xfs/xfs_da_btree.c
parentd9392a4bb75503fc2adbb5237c3df940c6467eb2 (diff)
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>
Diffstat (limited to 'fs/xfs/xfs_da_btree.c')
-rw-r--r--fs/xfs/xfs_da_btree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c
index 1b84fc50a053..93ebc0fc6dd9 100644
--- a/fs/xfs/xfs_da_btree.c
+++ b/fs/xfs/xfs_da_btree.c
@@ -2285,10 +2285,10 @@ xfs_da_reada_buf(
2285 struct xfs_trans *trans, 2285 struct xfs_trans *trans,
2286 struct xfs_inode *dp, 2286 struct xfs_inode *dp,
2287 xfs_dablk_t bno, 2287 xfs_dablk_t bno,
2288 xfs_daddr_t mappedbno,
2288 int whichfork, 2289 int whichfork,
2289 xfs_buf_iodone_t verifier) 2290 xfs_buf_iodone_t verifier)
2290{ 2291{
2291 xfs_daddr_t mappedbno = -1;
2292 struct xfs_buf_map map; 2292 struct xfs_buf_map map;
2293 struct xfs_buf_map *mapp; 2293 struct xfs_buf_map *mapp;
2294 int nmap; 2294 int nmap;
@@ -2296,7 +2296,7 @@ xfs_da_reada_buf(
2296 2296
2297 mapp = &map; 2297 mapp = &map;
2298 nmap = 1; 2298 nmap = 1;
2299 error = xfs_dabuf_map(trans, dp, bno, -1, whichfork, 2299 error = xfs_dabuf_map(trans, dp, bno, mappedbno, whichfork,
2300 &mapp, &nmap); 2300 &mapp, &nmap);
2301 if (error) { 2301 if (error) {
2302 /* mapping a hole is not an error, but we don't continue */ 2302 /* mapping a hole is not an error, but we don't continue */