patch-2.3.9 linux/fs/hpfs/anode.c

Next file: linux/fs/hpfs/ea.c
Previous file: linux/fs/hpfs/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.8/linux/fs/hpfs/anode.c linux/fs/hpfs/anode.c
@@ -301,13 +301,20 @@
 		anode = hpfs_map_anode(s, ano, &bh);
 		btree1 = &anode->btree;
 	} else btree1 = btree;
-	for (i = 0; i < btree1->n_used_nodes; i++)
-		if (btree1->u.internal[i].down == oano)
-			if ((pos = i + 1) < btree1->n_used_nodes) goto go_down;
-			else goto go_up;
-	hpfs_error(s, "reference to anode %08x not found in anode %08x (probably bad up pointer)",
-		oano, level ? ano : -1);
-	if (level) brelse(bh);
+	for (i = 0; i < btree1->n_used_nodes; i++) {
+		if (btree1->u.internal[i].down == oano) {
+			if ((pos = i + 1) < btree1->n_used_nodes)
+				goto go_down;
+			else
+				goto go_up;
+		}
+	}
+	hpfs_error(s,
+		   "reference to anode %08x not found in anode %08x "
+		   "(probably bad up pointer)",
+		   oano, level ? ano : -1);
+	if (level)
+		brelse(bh);
 }
 
 /* Just a wrapper around hpfs_bplus_lookup .. used for reading eas */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)