xfs: devirtualize ->node_hdr_to_disk
Replace the ->node_hdr_to_disk dir ops method with a directly called xfs_da_node_hdr_to_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:
committed by
Darrick J. Wong
parent
f475dc4dc7
commit
e1c8af1e02
@@ -1196,7 +1196,7 @@ xfs_attr3_leaf_to_node(
|
||||
btree[0].hashval = entries[icleafhdr.count - 1].hashval;
|
||||
btree[0].before = cpu_to_be32(blkno);
|
||||
icnodehdr.count = 1;
|
||||
dp->d_ops->node_hdr_to_disk(node, &icnodehdr);
|
||||
xfs_da3_node_hdr_to_disk(dp->i_mount, node, &icnodehdr);
|
||||
xfs_trans_log_buf(args->trans, bp1, 0, args->geo->blksize - 1);
|
||||
error = 0;
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user