diff options
author | Christoph Hellwig <hch@lst.de> | 2019-11-08 15:01:30 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-10 16:54:21 -0800 |
commit | 5893e4feb0eac11aab7b93ff9fe7e6e58bcec5ec (patch) | |
tree | 78e64769cd84be8918c8a608dafd0dda641aea3a /fs/xfs/libxfs/xfs_dir2.c | |
parent | ed1d612fbe6ba95a4d16b56bbfb1f90d48a42149 (diff) | |
download | linux-5893e4feb0eac11aab7b93ff9fe7e6e58bcec5ec.tar.gz linux-5893e4feb0eac11aab7b93ff9fe7e6e58bcec5ec.tar.bz2 linux-5893e4feb0eac11aab7b93ff9fe7e6e58bcec5ec.zip |
xfs: move the max dir2 free bests count to struct xfs_da_geometry
Move the max free bests count towards our structure for dir/attr
geometry parameters.
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_dir2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2.c b/fs/xfs/libxfs/xfs_dir2.c index eee75ec9707f..77a297e7d91c 100644 --- a/fs/xfs/libxfs/xfs_dir2.c +++ b/fs/xfs/libxfs/xfs_dir2.c @@ -133,6 +133,8 @@ xfs_da_mount( } dageo->leaf_max_ents = (dageo->blksize - dageo->leaf_hdr_size) / sizeof(struct xfs_dir2_leaf_entry); + dageo->free_max_bests = (dageo->blksize - dageo->free_hdr_size) / + sizeof(xfs_dir2_data_off_t); /* * Now we've set up the block conversion variables, we can calculate the |