This patch is an addendum to the previous journaled file/unmount patch.
It fixes a problem discovered during testing.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
                return;
        }
        tr->tr_touched = 1;
-       tr->tr_num_buf++;
-       list_add(&bd->bd_list_tr, &tr->tr_list_buf);
+       if (gfs2_is_jdata(ip)) {
+               tr->tr_num_buf++;
+               list_add(&bd->bd_list_tr, &tr->tr_list_buf);
+       }
        gfs2_log_unlock(sdp);
        if (!list_empty(&le->le_list))
                return;