xfs: factor dir2 leaf read
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:
parent
e481357264
commit
e6f7667c4e
3 changed files with 67 additions and 14 deletions
|
|
@ -1232,11 +1232,11 @@ xfs_dir2_leafn_toosmall(
|
|||
/*
|
||||
* Read the sibling leaf block.
|
||||
*/
|
||||
error = xfs_da_read_buf(state->args->trans, state->args->dp,
|
||||
blkno, -1, &bp, XFS_DATA_FORK, NULL);
|
||||
error = xfs_dir2_leafn_read(state->args->trans, state->args->dp,
|
||||
blkno, -1, &bp);
|
||||
if (error)
|
||||
return error;
|
||||
ASSERT(bp != NULL);
|
||||
|
||||
/*
|
||||
* Count bytes in the two blocks combined.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue