From: Bob Peterson Date: Thu, 14 Apr 2016 15:20:06 -0400 (EDT) Subject: [Cluster-devel] [GFS2 PATCH] GFS2: Remove bufdata from transactions to which they belong In-Reply-To: <1946310917.51269413.1460661554844.JavaMail.zimbra@redhat.com> Message-ID: <551100611.51269503.1460661606283.JavaMail.zimbra@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, This patch changes the call in function gfs2_discard so that it tries to remove the bufdata from the transaction to which it belongs rather than from the current transaction. That's because the page might be getting removed by way of a different process, one that has no GFS2 transaction, due to memory pressure. Signed-off-by: Bob Peterson --- diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index aa016e4..e93e337 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c @@ -977,7 +977,7 @@ static void gfs2_discard(struct gfs2_sbd *sdp, struct buffer_head *bh) if (!list_empty(&bd->bd_list) && !buffer_pinned(bh)) list_del_init(&bd->bd_list); else - gfs2_remove_from_journal(bh, current->journal_info, 0); + gfs2_remove_from_journal(bh, bd->bd_tr, 0); } bh->b_bdev = NULL; clear_buffer_mapped(bh);