Patch "Revert "gfs2: Don't reject a supposedly full bitmap if we have blocks reserved"" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Revert "gfs2: Don't reject a supposedly full bitmap if we have blocks reserved"

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     revert-gfs2-don-t-reject-a-supposedly-full-bitmap-if.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 9764a6e2e7a1bf627c845eb52b3a620369182525
Author: Andreas Gruenbacher <agruenba@xxxxxxxxxx>
Date:   Tue Oct 6 14:29:04 2020 +0200

    Revert "gfs2: Don't reject a supposedly full bitmap if we have blocks reserved"
    
    [ Upstream commit 2fdc2fa21bc72ec06c0c9f0e30b88fe1f2486b75 ]
    
    This reverts commit e79e0e1428188b24c3b57309ffa54a33c4ae40c4.
    
    It turns out that we're only setting the GBF_FULL flag of a bitmap if we've
    been scanning from the beginning of the bitmap until the end and we haven't
    found a single free block, and we're not skipping reservations in that process,
    either.  This means that in gfs2_rbm_find, we can always skip bitmaps with the
    GBF_FULL flag set.
    
    Signed-off-by: Andreas Gruenbacher <agruenba@xxxxxxxxxx>
    Stable-dep-of: 8877243beafa ("gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
index c5bde789a16d..e05c01d5b9e6 100644
--- a/fs/gfs2/rgrp.c
+++ b/fs/gfs2/rgrp.c
@@ -1717,8 +1717,7 @@ static int gfs2_rbm_find(struct gfs2_rbm *rbm, u8 state, u32 *minext,
 
 	while(1) {
 		bi = rbm_bi(rbm);
-		if ((ip == NULL || !gfs2_rs_active(&ip->i_res)) &&
-		    test_bit(GBF_FULL, &bi->bi_flags) &&
+		if (test_bit(GBF_FULL, &bi->bi_flags) &&
 		    (state == GFS2_BLKST_FREE))
 			goto next_bitmap;
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux