DBINITMAP(bmp->db_mapsize, ipbmap, &bmp->db_DBmap); 
int dbMount(struct inode *ipbmap){	struct bmap *bmp;	struct dbmap_disk *dbmp_le;	struct metapage *mp;	int i;	/*	 * allocate/initialize the in-memory bmap descriptor	 */	/* allocate memory for the in-memory bmap descriptor */	bmp = kmalloc(sizeof(struct bmap), GFP_KERNEL);	if (bmp == NULL)		return -ENOMEM;	/* read the on-disk bmap descriptor. */	mp = read_metapage(ipbmap,			   BMAPBLKNO << JFS_SBI(ipbmap->i_sb)->l2nbperpage,			   PSIZE, 0);	if (mp == NULL) {		kfree(bmp);		return -EIO;	}	/* copy the on-disk bmap descriptor to its in-memory version. */	dbmp_le = (struct dbmap_disk *) mp->data;	bmp->db_mapsize = le64_to_cpu(dbmp_le->dn_mapsize);	bmp->db_nfree = le64_to_cpu(dbmp_le->dn_nfree);	bmp->db_l2nbperpage = le32_to_cpu(dbmp_le->dn_l2nbperpage);	bmp->db_numag = le32_to_cpu(dbmp_le->dn_numag);	bmp->db_maxlevel = le32_to_cpu(dbmp_le->dn_maxlevel);	bmp->db_maxag = le32_to_cpu(dbmp_le->dn_maxag);	bmp->db_agpref = le32_to_cpu(dbmp_le->dn_agpref);	bmp->db_aglevel = le32_to_cpu(dbmp_le->dn_aglevel);	bmp->db_agheigth = le32_to_cpu(dbmp_le->dn_agheigth);	bmp->db_agwidth = le32_to_cpu(dbmp_le->dn_agwidth);	bmp->db_agstart = le32_to_cpu(dbmp_le->dn_agstart);	bmp->db_agl2size = le32_to_cpu(dbmp_le->dn_agl2size);	for (i = 0; i < MAXAG; i++)		bmp->db_agfree[i] = le64_to_cpu(dbmp_le->dn_agfree[i]);	bmp->db_agsize = le64_to_cpu(dbmp_le->dn_agsize);	bmp->db_maxfreebud = dbmp_le->dn_maxfreebud;	/* release the buffer. */	release_metapage(mp);	/* bind the bmap inode and the bmap descriptor to each other. */	bmp->db_ipbmap = ipbmap;	JFS_SBI(ipbmap->i_sb)->bmap = bmp;	memset(bmp->db_active, 0, sizeof(bmp->db_active));	DBINITMAP(bmp->db_mapsize, ipbmap, &bmp->db_DBmap);	/*	 * allocate/initialize the bmap lock	 */	BMAP_LOCK_INIT(bmp);	return (0);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b38a3ab3d1bb0dc3288f73903d4dc4672b5cd2d0/jfs_dmap.c/buggy/fs/jfs/jfs_dmap.c