Subject: afs/fs/cachefs journal.c,1.33,1.34

From: [email-masked]
Date: Mon, 09 Jun 2003 17:07:46 +0100

Update of /home/cvs/afs/fs/cachefs
In directory phoenix.infradead.org:/tmp/cvs-serv14172/fs/cachefs

Modified Files:
	journal.c 
Log Message:
don't try to release a page we don't have

Index: journal.c
===================================================================
RCS file: /home/cvs/afs/fs/cachefs/journal.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- journal.c	2 Jun 2003 09:17:42 -0000	1.33
+++ journal.c	9 Jun 2003 16:07:43 -0000	1.34
@@ -189,8 +189,10 @@
 		kfree(trans->jentry);
 	}
 
-	dbgpgfree(trans->jpage);
-	page_cache_release(trans->jpage);
+	if (trans->jpage) {
+		dbgpgfree(trans->jpage);
+		page_cache_release(trans->jpage);
+	}
 
 	if (trans->jblock)
 		cachefs_block_put(xchg(&trans->jblock,NULL));