Merge tag 'vfio-for-v3.10' of git://github.com/awilliam/linux-vfio
[cascardo/linux.git] / fs / gfs2 / meta_io.c
index b059bbb..1a89afb 100644 (file)
@@ -295,7 +295,7 @@ void gfs2_remove_from_journal(struct buffer_head *bh, struct gfs2_trans *tr, int
        }
        if (bd) {
                spin_lock(&sdp->sd_ail_lock);
-               if (bd->bd_ail) {
+               if (bd->bd_tr) {
                        gfs2_remove_from_ail(bd);
                        bh->b_private = NULL;
                        bd->bd_bh = NULL;