瀏覽代碼

JFS: cleanup - remove unneeded sanity check

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Dave Kleikamp 20 年之前
父節點
當前提交
dcc9871270
共有 1 個文件被更改,包括 0 次插入9 次删除
  1. 0 9
      fs/jfs/jfs_dmap.c

+ 0 - 9
fs/jfs/jfs_dmap.c

@@ -272,7 +272,6 @@ int dbMount(struct inode *ipbmap)
 int dbUnmount(struct inode *ipbmap, int mounterror)
 int dbUnmount(struct inode *ipbmap, int mounterror)
 {
 {
 	struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
 	struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
-	int i;
 
 
 	if (!(mounterror || isReadOnly(ipbmap)))
 	if (!(mounterror || isReadOnly(ipbmap)))
 		dbSync(ipbmap);
 		dbSync(ipbmap);
@@ -282,14 +281,6 @@ int dbUnmount(struct inode *ipbmap, int mounterror)
 	 */
 	 */
 	truncate_inode_pages(ipbmap->i_mapping, 0);
 	truncate_inode_pages(ipbmap->i_mapping, 0);
 
 
-	/*
-	 * Sanity Check
-	 */
-	for (i = 0; i < bmp->db_numag; i++)
-		if (atomic_read(&bmp->db_active[i]))
-			printk(KERN_ERR "dbUnmount: db_active[%d] = %d\n",
-			       i, atomic_read(&bmp->db_active[i]));
-
 	/* free the memory for the in-memory bmap. */
 	/* free the memory for the in-memory bmap. */
 	kfree(bmp);
 	kfree(bmp);