ocfs2: Always try for maximum bits with new local alloc windows

What we were doing before was to ask for the current window size as the
maximum allocation. This had the effect of limiting the amount of allocation
we could get for the local alloc during times when the window size was
shrunk due to fragmentation. In some cases, that could actually *increase*
fragmentation by artificially limiting the number of bits we can accept. So
while we still want to ask for a minimum number of bits equal to window
size, there is no reason why we should limit the number of bits the local
alloc should accept. Hence always allow the maximum number of local alloc
bits.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>

authored by Mark Fasheh and committed by Joel Becker b22b63eb fcefd25a

+2 -2
+2 -2
fs/ocfs2/localalloc.c
··· 984 } 985 986 retry_enospc: 987 - (*ac)->ac_bits_wanted = osb->local_alloc_bits; 988 - 989 status = ocfs2_reserve_cluster_bitmap_bits(osb, *ac); 990 if (status == -ENOSPC) { 991 if (ocfs2_recalc_la_window(osb, OCFS2_LA_EVENT_ENOSPC) == ··· 1060 OCFS2_LA_DISABLED) 1061 goto bail; 1062 1063 status = ocfs2_claim_clusters(osb, handle, ac, 1064 osb->local_alloc_bits, 1065 &cluster_off,
··· 984 } 985 986 retry_enospc: 987 + (*ac)->ac_bits_wanted = osb->local_alloc_default_bits; 988 status = ocfs2_reserve_cluster_bitmap_bits(osb, *ac); 989 if (status == -ENOSPC) { 990 if (ocfs2_recalc_la_window(osb, OCFS2_LA_EVENT_ENOSPC) == ··· 1061 OCFS2_LA_DISABLED) 1062 goto bail; 1063 1064 + ac->ac_bits_wanted = osb->local_alloc_default_bits; 1065 status = ocfs2_claim_clusters(osb, handle, ac, 1066 osb->local_alloc_bits, 1067 &cluster_off,