mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
xfs: add a bests pointer to struct xfs_dir3_icfree_hdr
All but two callers of the ->free_bests_p dir operation already have a struct xfs_dir3_icfree_hdr from a previous call to xfs_dir2_free_hdr_from_disk at hand. Add a pointer to the bests to struct xfs_dir3_icfree_hdr to clean up this pattern. To optimize this pattern, pass the struct xfs_dir3_icfree_hdr to xfs_dir2_free_log_bests instead of recalculating the pointer there. 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:
parent
195b0a44ab
commit
a84f3d5cb0
6 changed files with 48 additions and 83 deletions
|
@ -31,6 +31,12 @@ struct xfs_dir3_icfree_hdr {
|
|||
uint32_t firstdb;
|
||||
uint32_t nvalid;
|
||||
uint32_t nused;
|
||||
|
||||
/*
|
||||
* Pointer to the on-disk format entries, which are behind the
|
||||
* variable size (v4 vs v5) header in the on-disk block.
|
||||
*/
|
||||
__be16 *bests;
|
||||
};
|
||||
|
||||
/* xfs_dir2.c */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue