diff --git a/[refs] b/[refs] index 0ab570780458..42398a959b30 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 96150606e2fb82d242c9e4a414e4e922849f7bf7 +refs/heads/master: 934eed395d201bf0901ca0c0cc3703b18729d0ce diff --git a/trunk/fs/logfs/gc.c b/trunk/fs/logfs/gc.c index caa4419285dc..d4efb061bdc5 100644 --- a/trunk/fs/logfs/gc.c +++ b/trunk/fs/logfs/gc.c @@ -367,7 +367,7 @@ static struct gc_candidate *get_candidate(struct super_block *sb) int i, max_dist; struct gc_candidate *cand = NULL, *this; - max_dist = min(no_free_segments(sb), LOGFS_NO_AREAS); + max_dist = min(no_free_segments(sb), LOGFS_NO_AREAS - 1); for (i = max_dist; i >= 0; i--) { this = first_in_list(&super->s_low_list[i]);