patch-2.4.11-dontuse linux/fs/reiserfs/tail_conversion.c

Next file: linux/fs/romfs/inode.c
Previous file: linux/fs/reiserfs/stree.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.10/linux/fs/reiserfs/tail_conversion.c linux/fs/reiserfs/tail_conversion.c
@@ -92,12 +92,9 @@
 	    reiserfs_panic (sb, "PAP-14050: direct2indirect: "
 			    "direct item (%k) not found", &end_key);
 	p_le_ih = PATH_PITEM_HEAD (path);
-#ifdef CONFIG_REISERFS_CHECK
-	if (!is_direct_le_ih (p_le_ih))
-	    reiserfs_panic (sb, "vs-14055: direct2indirect: "
-			    "direct item expected(%k), found %h", 
-				&end_key, p_le_ih);
-#endif
+	RFALSE( !is_direct_le_ih (p_le_ih),
+		"vs-14055: direct item expected(%k), found %h", 
+		&end_key, p_le_ih);
 	tail_size = (le_ih_k_offset (p_le_ih) & (n_blk_size - 1))
 	    + ih_item_len(p_le_ih) - 1;
 

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