diff options
-rw-r--r-- | fs/xfs/xfs_da_btree.c | 8 | ||||
-rw-r--r-- | fs/xfs/xfs_da_btree.h | 6 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_data.c | 3 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_priv.h | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_readdir.c | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_file.c | 2 |
6 files changed, 12 insertions, 15 deletions
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c index 6cc5f6785a77..9eec594cc25a 100644 --- a/fs/xfs/xfs_da_btree.c +++ b/fs/xfs/xfs_da_btree.c | |||
@@ -2462,7 +2462,6 @@ xfs_buf_map_from_irec( | |||
2462 | */ | 2462 | */ |
2463 | static int | 2463 | static int |
2464 | xfs_dabuf_map( | 2464 | xfs_dabuf_map( |
2465 | struct xfs_trans *trans, | ||
2466 | struct xfs_inode *dp, | 2465 | struct xfs_inode *dp, |
2467 | xfs_dablk_t bno, | 2466 | xfs_dablk_t bno, |
2468 | xfs_daddr_t mappedbno, | 2467 | xfs_daddr_t mappedbno, |
@@ -2558,7 +2557,7 @@ xfs_da_get_buf( | |||
2558 | *bpp = NULL; | 2557 | *bpp = NULL; |
2559 | mapp = ↦ | 2558 | mapp = ↦ |
2560 | nmap = 1; | 2559 | nmap = 1; |
2561 | error = xfs_dabuf_map(trans, dp, bno, mappedbno, whichfork, | 2560 | error = xfs_dabuf_map(dp, bno, mappedbno, whichfork, |
2562 | &mapp, &nmap); | 2561 | &mapp, &nmap); |
2563 | if (error) { | 2562 | if (error) { |
2564 | /* mapping a hole is not an error, but we don't continue */ | 2563 | /* mapping a hole is not an error, but we don't continue */ |
@@ -2606,7 +2605,7 @@ xfs_da_read_buf( | |||
2606 | *bpp = NULL; | 2605 | *bpp = NULL; |
2607 | mapp = ↦ | 2606 | mapp = ↦ |
2608 | nmap = 1; | 2607 | nmap = 1; |
2609 | error = xfs_dabuf_map(trans, dp, bno, mappedbno, whichfork, | 2608 | error = xfs_dabuf_map(dp, bno, mappedbno, whichfork, |
2610 | &mapp, &nmap); | 2609 | &mapp, &nmap); |
2611 | if (error) { | 2610 | if (error) { |
2612 | /* mapping a hole is not an error, but we don't continue */ | 2611 | /* mapping a hole is not an error, but we don't continue */ |
@@ -2679,7 +2678,6 @@ out_free: | |||
2679 | */ | 2678 | */ |
2680 | xfs_daddr_t | 2679 | xfs_daddr_t |
2681 | xfs_da_reada_buf( | 2680 | xfs_da_reada_buf( |
2682 | struct xfs_trans *trans, | ||
2683 | struct xfs_inode *dp, | 2681 | struct xfs_inode *dp, |
2684 | xfs_dablk_t bno, | 2682 | xfs_dablk_t bno, |
2685 | xfs_daddr_t mappedbno, | 2683 | xfs_daddr_t mappedbno, |
@@ -2693,7 +2691,7 @@ xfs_da_reada_buf( | |||
2693 | 2691 | ||
2694 | mapp = ↦ | 2692 | mapp = ↦ |
2695 | nmap = 1; | 2693 | nmap = 1; |
2696 | error = xfs_dabuf_map(trans, dp, bno, mappedbno, whichfork, | 2694 | error = xfs_dabuf_map(dp, bno, mappedbno, whichfork, |
2697 | &mapp, &nmap); | 2695 | &mapp, &nmap); |
2698 | if (error) { | 2696 | if (error) { |
2699 | /* mapping a hole is not an error, but we don't continue */ | 2697 | /* mapping a hole is not an error, but we don't continue */ |
diff --git a/fs/xfs/xfs_da_btree.h b/fs/xfs/xfs_da_btree.h index 6e95ea79f5d7..4cc6a462252e 100644 --- a/fs/xfs/xfs_da_btree.h +++ b/fs/xfs/xfs_da_btree.h | |||
@@ -183,9 +183,9 @@ int xfs_da_read_buf(struct xfs_trans *trans, struct xfs_inode *dp, | |||
183 | xfs_dablk_t bno, xfs_daddr_t mappedbno, | 183 | xfs_dablk_t bno, xfs_daddr_t mappedbno, |
184 | struct xfs_buf **bpp, int whichfork, | 184 | struct xfs_buf **bpp, int whichfork, |
185 | const struct xfs_buf_ops *ops); | 185 | const struct xfs_buf_ops *ops); |
186 | xfs_daddr_t xfs_da_reada_buf(struct xfs_trans *trans, struct xfs_inode *dp, | 186 | xfs_daddr_t xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno, |
187 | xfs_dablk_t bno, xfs_daddr_t mapped_bno, | 187 | xfs_daddr_t mapped_bno, int whichfork, |
188 | int whichfork, const struct xfs_buf_ops *ops); | 188 | const struct xfs_buf_ops *ops); |
189 | int xfs_da_shrink_inode(xfs_da_args_t *args, xfs_dablk_t dead_blkno, | 189 | int xfs_da_shrink_inode(xfs_da_args_t *args, xfs_dablk_t dead_blkno, |
190 | struct xfs_buf *dead_buf); | 190 | struct xfs_buf *dead_buf); |
191 | 191 | ||
diff --git a/fs/xfs/xfs_dir2_data.c b/fs/xfs/xfs_dir2_data.c index afa4ad523f3f..bae8b5b8d1c2 100644 --- a/fs/xfs/xfs_dir2_data.c +++ b/fs/xfs/xfs_dir2_data.c | |||
@@ -329,12 +329,11 @@ xfs_dir3_data_read( | |||
329 | 329 | ||
330 | int | 330 | int |
331 | xfs_dir3_data_readahead( | 331 | xfs_dir3_data_readahead( |
332 | struct xfs_trans *tp, | ||
333 | struct xfs_inode *dp, | 332 | struct xfs_inode *dp, |
334 | xfs_dablk_t bno, | 333 | xfs_dablk_t bno, |
335 | xfs_daddr_t mapped_bno) | 334 | xfs_daddr_t mapped_bno) |
336 | { | 335 | { |
337 | return xfs_da_reada_buf(tp, dp, bno, mapped_bno, | 336 | return xfs_da_reada_buf(dp, bno, mapped_bno, |
338 | XFS_DATA_FORK, &xfs_dir3_data_reada_buf_ops); | 337 | XFS_DATA_FORK, &xfs_dir3_data_reada_buf_ops); |
339 | } | 338 | } |
340 | 339 | ||
diff --git a/fs/xfs/xfs_dir2_priv.h b/fs/xfs/xfs_dir2_priv.h index 8b9d2281f85b..2429960739e9 100644 --- a/fs/xfs/xfs_dir2_priv.h +++ b/fs/xfs/xfs_dir2_priv.h | |||
@@ -54,8 +54,8 @@ extern int xfs_dir2_leaf_to_block(struct xfs_da_args *args, | |||
54 | extern int __xfs_dir3_data_check(struct xfs_inode *dp, struct xfs_buf *bp); | 54 | extern int __xfs_dir3_data_check(struct xfs_inode *dp, struct xfs_buf *bp); |
55 | extern int xfs_dir3_data_read(struct xfs_trans *tp, struct xfs_inode *dp, | 55 | extern int xfs_dir3_data_read(struct xfs_trans *tp, struct xfs_inode *dp, |
56 | xfs_dablk_t bno, xfs_daddr_t mapped_bno, struct xfs_buf **bpp); | 56 | xfs_dablk_t bno, xfs_daddr_t mapped_bno, struct xfs_buf **bpp); |
57 | extern int xfs_dir3_data_readahead(struct xfs_trans *tp, struct xfs_inode *dp, | 57 | extern int xfs_dir3_data_readahead(struct xfs_inode *dp, xfs_dablk_t bno, |
58 | xfs_dablk_t bno, xfs_daddr_t mapped_bno); | 58 | xfs_daddr_t mapped_bno); |
59 | 59 | ||
60 | extern struct xfs_dir2_data_free * | 60 | extern struct xfs_dir2_data_free * |
61 | xfs_dir2_data_freeinsert(struct xfs_dir2_data_hdr *hdr, | 61 | xfs_dir2_data_freeinsert(struct xfs_dir2_data_hdr *hdr, |
diff --git a/fs/xfs/xfs_dir2_readdir.c b/fs/xfs/xfs_dir2_readdir.c index a18000f71426..a99967bd7b6a 100644 --- a/fs/xfs/xfs_dir2_readdir.c +++ b/fs/xfs/xfs_dir2_readdir.c | |||
@@ -434,7 +434,7 @@ xfs_dir2_leaf_readbuf( | |||
434 | */ | 434 | */ |
435 | if (i > mip->ra_current && | 435 | if (i > mip->ra_current && |
436 | map[mip->ra_index].br_blockcount >= mp->m_dirblkfsbs) { | 436 | map[mip->ra_index].br_blockcount >= mp->m_dirblkfsbs) { |
437 | xfs_dir3_data_readahead(NULL, dp, | 437 | xfs_dir3_data_readahead(dp, |
438 | map[mip->ra_index].br_startoff + mip->ra_offset, | 438 | map[mip->ra_index].br_startoff + mip->ra_offset, |
439 | XFS_FSB_TO_DADDR(mp, | 439 | XFS_FSB_TO_DADDR(mp, |
440 | map[mip->ra_index].br_startblock + | 440 | map[mip->ra_index].br_startblock + |
@@ -447,7 +447,7 @@ xfs_dir2_leaf_readbuf( | |||
447 | * use our mapping, but this is a very rare case. | 447 | * use our mapping, but this is a very rare case. |
448 | */ | 448 | */ |
449 | else if (i > mip->ra_current) { | 449 | else if (i > mip->ra_current) { |
450 | xfs_dir3_data_readahead(NULL, dp, | 450 | xfs_dir3_data_readahead(dp, |
451 | map[mip->ra_index].br_startoff + | 451 | map[mip->ra_index].br_startoff + |
452 | mip->ra_offset, -1); | 452 | mip->ra_offset, -1); |
453 | mip->ra_current = i; | 453 | mip->ra_current = i; |
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 79e96ce98733..3dcf9a19c93f 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -936,7 +936,7 @@ xfs_dir_open( | |||
936 | */ | 936 | */ |
937 | mode = xfs_ilock_data_map_shared(ip); | 937 | mode = xfs_ilock_data_map_shared(ip); |
938 | if (ip->i_d.di_nextents > 0) | 938 | if (ip->i_d.di_nextents > 0) |
939 | xfs_dir3_data_readahead(NULL, ip, 0, -1); | 939 | xfs_dir3_data_readahead(ip, 0, -1); |
940 | xfs_iunlock(ip, mode); | 940 | xfs_iunlock(ip, mode); |
941 | return 0; | 941 | return 0; |
942 | } | 942 | } |