patch-2.4.26 linux-2.4.26/fs/jfs/jfs_metapage.c
Next file: linux-2.4.26/fs/jfs/jfs_txnmgr.c
Previous file: linux-2.4.26/fs/jfs/jfs_logmgr.h
Back to the patch index
Back to the overall index
-  Lines: 11
-  Date:
2004-04-14 06:05:40.000000000 -0700
-  Orig file: 
linux-2.4.25/fs/jfs/jfs_metapage.c
-  Orig date: 
2003-11-28 10:26:21.000000000 -0800
diff -urN linux-2.4.25/fs/jfs/jfs_metapage.c linux-2.4.26/fs/jfs/jfs_metapage.c
@@ -385,6 +385,10 @@
 		}
 		mp->data = kmap(mp->page) + page_offset;
 	}
+
+	if (new)
+		memset(mp->data, 0, PSIZE);
+
 	jfs_info("__get_metapage: returning = 0x%p", mp);
 	return mp;
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)