diff options
Diffstat (limited to 'fs/xfs/libxfs/xfs_alloc.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_alloc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c index 39387bdd225d..4bcc095fe44a 100644 --- a/fs/xfs/libxfs/xfs_alloc.c +++ b/fs/xfs/libxfs/xfs_alloc.c | |||
@@ -1947,7 +1947,7 @@ void | |||
1947 | xfs_alloc_compute_maxlevels( | 1947 | xfs_alloc_compute_maxlevels( |
1948 | xfs_mount_t *mp) /* file system mount structure */ | 1948 | xfs_mount_t *mp) /* file system mount structure */ |
1949 | { | 1949 | { |
1950 | mp->m_ag_maxlevels = xfs_btree_compute_maxlevels(mp, mp->m_alloc_mnr, | 1950 | mp->m_ag_maxlevels = xfs_btree_compute_maxlevels(mp->m_alloc_mnr, |
1951 | (mp->m_sb.sb_agblocks + 1) / 2); | 1951 | (mp->m_sb.sb_agblocks + 1) / 2); |
1952 | } | 1952 | } |
1953 | 1953 | ||
@@ -1959,7 +1959,6 @@ xfs_alloc_compute_maxlevels( | |||
1959 | */ | 1959 | */ |
1960 | xfs_extlen_t | 1960 | xfs_extlen_t |
1961 | xfs_alloc_longest_free_extent( | 1961 | xfs_alloc_longest_free_extent( |
1962 | struct xfs_mount *mp, | ||
1963 | struct xfs_perag *pag, | 1962 | struct xfs_perag *pag, |
1964 | xfs_extlen_t need, | 1963 | xfs_extlen_t need, |
1965 | xfs_extlen_t reserved) | 1964 | xfs_extlen_t reserved) |
@@ -2038,8 +2037,7 @@ xfs_alloc_space_available( | |||
2038 | 2037 | ||
2039 | /* do we have enough contiguous free space for the allocation? */ | 2038 | /* do we have enough contiguous free space for the allocation? */ |
2040 | alloc_len = args->minlen + (args->alignment - 1) + args->minalignslop; | 2039 | alloc_len = args->minlen + (args->alignment - 1) + args->minalignslop; |
2041 | longest = xfs_alloc_longest_free_extent(args->mp, pag, min_free, | 2040 | longest = xfs_alloc_longest_free_extent(pag, min_free, reservation); |
2042 | reservation); | ||
2043 | if (longest < alloc_len) | 2041 | if (longest < alloc_len) |
2044 | return false; | 2042 | return false; |
2045 | 2043 | ||