From: Mark Fasheh Date: Mon, 3 Dec 2007 23:02:10 +0000 (-0800) Subject: ocfs2: Don't panic when truncating an empty extent X-Git-Tag: v3.12-rc1~24391^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92295d8054289eff0d52b4d12349f9b9df0f58e4;p=kernel%2Fkernel-generic.git ocfs2: Don't panic when truncating an empty extent This BUG_ON() was unintentionally left in after the sparse file support was written. Signed-off-by: Mark Fasheh --- diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index ce62c15..97f0db5 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c @@ -6093,8 +6093,6 @@ start: mlog(0, "clusters_to_del = %u in this pass, tail blk=%llu\n", clusters_to_del, (unsigned long long)path_leaf_bh(path)->b_blocknr); - BUG_ON(clusters_to_del == 0); - mutex_lock(&tl_inode->i_mutex); tl_sem = 1; /* ocfs2_truncate_log_needs_flush guarantees us at least one