patch-2.4.26 linux-2.4.26/fs/jfs/jfs_logmgr.c
Next file: linux-2.4.26/fs/jfs/jfs_logmgr.h
Previous file: linux-2.4.26/fs/jfs/jfs_imap.c
Back to the patch index
Back to the overall index
-  Lines: 35
-  Date:
2004-04-14 06:05:40.000000000 -0700
-  Orig file: 
linux-2.4.25/fs/jfs/jfs_logmgr.c
-  Orig date: 
2004-02-18 05:36:31.000000000 -0800
diff -urN linux-2.4.25/fs/jfs/jfs_logmgr.c linux-2.4.26/fs/jfs/jfs_logmgr.c
@@ -185,6 +185,7 @@
 static void lbmIODone(struct buffer_head *bh, int);
 static void lbmStartIO(struct lbuf * bp);
 static void lmGCwrite(struct jfs_log * log, int cant_block);
+static int lmLogSync(struct jfs_log * log, int nosyncwait);
 
 
 /*
@@ -799,7 +800,7 @@
  * NOTE:
  *	This routine is called a interrupt time by lbmIODone
  */
-void lmPostGC(struct lbuf * bp)
+static void lmPostGC(struct lbuf * bp)
 {
 	unsigned long flags;
 	struct jfs_log *log = bp->l_log;
@@ -922,7 +923,7 @@
  *			
  * serialization: LOG_LOCK() held on entry/exit
  */
-int lmLogSync(struct jfs_log * log, int nosyncwait)
+static int lmLogSync(struct jfs_log * log, int nosyncwait)
 {
 	int logsize;
 	int written;		/* written since last syncpt */
@@ -1697,7 +1698,7 @@
 		if (lbuf == 0)
 			goto error;
 		lbuf->l_bh.b_data = lbuf->l_ldata =
-		    (char *) __get_free_page(GFP_KERNEL);
+		    (char *) get_zeroed_page(GFP_KERNEL);
 		if (lbuf->l_ldata == 0) {
 			kfree(lbuf);
 			goto error;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)