xfs: devirtualize ->node_hdr_from_disk

Replace the ->node_hdr_from_disk dir ops method with a directly called
xfs_da_node_hdr_from_disk helper that takes care of the v4 vs v5
difference.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
Christoph Hellwig
2019-11-08 14:53:00 -08:00
committed by Darrick J. Wong
parent 649d9d98c6
commit f475dc4dc7
8 changed files with 60 additions and 70 deletions

View File

@@ -215,7 +215,7 @@ xfs_attr3_node_inactive(
}
node = bp->b_addr;
dp->d_ops->node_hdr_from_disk(&ichdr, node);
xfs_da3_node_hdr_from_disk(dp->i_mount, &ichdr, node);
parent_blkno = bp->b_bn;
if (!ichdr.count) {
xfs_trans_brelse(*trans, bp);