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

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)