diff options
Diffstat (limited to 'fs/xfs/xfs_da_btree.c')
-rw-r--r-- | fs/xfs/xfs_da_btree.c | 4 |
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 = ↦ | 2297 | mapp = ↦ |
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 */ |