Skip to content

Commit e74c98c

Browse files
Andreas Gruenbachertorvalds
authored andcommitted
gfs2: Revert "Fix loop in gfs2_rbm_find"
This reverts commit 2d29f6b. It turns out that the fix can lead to a ~20 percent performance regression in initial writes to the page cache according to iozone. Let's revert this for now to have more time for a proper fix. Cc: stable@vger.kernel.org # v3.13+ Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9f78956 commit e74c98c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/gfs2/rgrp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,9 +1780,9 @@ static int gfs2_rbm_find(struct gfs2_rbm *rbm, u8 state, u32 *minext,
17801780
goto next_iter;
17811781
}
17821782
if (ret == -E2BIG) {
1783-
n += rbm->bii - initial_bii;
17841783
rbm->bii = 0;
17851784
rbm->offset = 0;
1785+
n += (rbm->bii - initial_bii);
17861786
goto res_covered_end_of_rgrp;
17871787
}
17881788
return ret;

0 commit comments

Comments
 (0)