Skip to content

Commit c943c0b

Browse files
Christoph Hellwigdjwong
authored andcommitted
xfs: remove the mappedbno argument to xfs_dir3_leaf_read
This argument is always hard coded to -1, so remove it. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent dfb8759 commit c943c0b

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

fs/xfs/libxfs/xfs_dir2_leaf.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,12 @@ xfs_dir3_leaf_read(
262262
struct xfs_trans *tp,
263263
struct xfs_inode *dp,
264264
xfs_dablk_t fbno,
265-
xfs_daddr_t mappedbno,
266265
struct xfs_buf **bpp)
267266
{
268267
int err;
269268

270-
err = xfs_da_read_buf(tp, dp, fbno, mappedbno, bpp,
271-
XFS_DATA_FORK, &xfs_dir3_leaf1_buf_ops);
269+
err = xfs_da_read_buf(tp, dp, fbno, -1, bpp, XFS_DATA_FORK,
270+
&xfs_dir3_leaf1_buf_ops);
272271
if (!err && tp && *bpp)
273272
xfs_trans_buf_set_type(tp, *bpp, XFS_BLFT_DIR_LEAF1_BUF);
274273
return err;
@@ -639,7 +638,7 @@ xfs_dir2_leaf_addname(
639638

640639
trace_xfs_dir2_leaf_addname(args);
641640

642-
error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp);
641+
error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, &lbp);
643642
if (error)
644643
return error;
645644

@@ -1230,7 +1229,7 @@ xfs_dir2_leaf_lookup_int(
12301229
tp = args->trans;
12311230
mp = dp->i_mount;
12321231

1233-
error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp);
1232+
error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, &lbp);
12341233
if (error)
12351234
return error;
12361235

fs/xfs/libxfs/xfs_dir2_priv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ void xfs_dir2_leaf_hdr_from_disk(struct xfs_mount *mp,
9494
struct xfs_dir3_icleaf_hdr *to, struct xfs_dir2_leaf *from);
9595
void xfs_dir2_leaf_hdr_to_disk(struct xfs_mount *mp, struct xfs_dir2_leaf *to,
9696
struct xfs_dir3_icleaf_hdr *from);
97-
extern int xfs_dir3_leaf_read(struct xfs_trans *tp, struct xfs_inode *dp,
98-
xfs_dablk_t fbno, xfs_daddr_t mappedbno, struct xfs_buf **bpp);
97+
int xfs_dir3_leaf_read(struct xfs_trans *tp, struct xfs_inode *dp,
98+
xfs_dablk_t fbno, struct xfs_buf **bpp);
9999
extern int xfs_dir3_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp,
100100
xfs_dablk_t fbno, xfs_daddr_t mappedbno, struct xfs_buf **bpp);
101101
extern int xfs_dir2_block_to_leaf(struct xfs_da_args *args,

fs/xfs/scrub/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ xchk_directory_leaf1_bestfree(
497497
int error;
498498

499499
/* Read the free space block. */
500-
error = xfs_dir3_leaf_read(sc->tp, sc->ip, lblk, -1, &bp);
500+
error = xfs_dir3_leaf_read(sc->tp, sc->ip, lblk, &bp);
501501
if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error))
502502
goto out;
503503
xchk_buffer_recheck(sc, bp);

0 commit comments

Comments
 (0)