Don't panic when unprepped ctail cluster is found. Instead, return error and suggest to fsck. Signed-off-by: Edward Shishkin --- fs/reiser4/plugin/item/ctail.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/fs/reiser4/plugin/item/ctail.c +++ b/fs/reiser4/plugin/item/ctail.c @@ -666,7 +666,11 @@ int do_readpage_ctail(struct inode * ino switch (clust->dstat) { case UNPR_DISK_CLUSTER: - BUG_ON(1); + warning("edward-1632", + "Bad item cluster %lu (Inode %llu). Fsck?", + clust->index, + (unsigned long long)get_inode_oid(inode)); + return RETERR(-EIO); case TRNC_DISK_CLUSTER: /* * Race with truncate!