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

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

diff -u --recursive --new-file v2.3.22/linux/fs/hpfs/anode.c linux/fs/hpfs/anode.c
@@ -293,10 +293,10 @@
 	if (!level) return;
 	if (s->s_hpfs_chk)
 		if (hpfs_stop_cycles(s, ano, &c1, &c2, "hpfs_remove_btree #2")) return;
+	brelse(bh);
 	hpfs_free_sectors(s, ano, 1);
 	oano = ano;
 	ano = anode->up;
-	brelse(bh);
 	if (--level) {
 		anode = hpfs_map_anode(s, ano, &bh);
 		btree1 = &anode->btree;

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