]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
gfs2: Remove pointless BUG_ON
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 12 Dec 2017 13:32:48 +0000 (14:32 +0100)
committerBob Peterson <rpeterso@redhat.com>
Wed, 17 Jan 2018 13:35:35 +0000 (06:35 -0700)
The current transaction is being dereferenced before asserting that is
not NULL; that isn't going to help.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/trans.c

index ca8b72d0a8315384161403e814983877b823f502..b95ebd166cac13a57331bad58480ba79d7a945b2 100644 (file)
@@ -92,7 +92,6 @@ void gfs2_trans_end(struct gfs2_sbd *sdp)
        s64 nbuf;
        int alloced = test_bit(TR_ALLOCED, &tr->tr_flags);
 
-       BUG_ON(!tr);
        current->journal_info = NULL;
 
        if (!test_bit(TR_TOUCHED, &tr->tr_flags)) {