diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-12-03 18:02:10 -0500 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-12-17 13:51:04 -0500 |
commit | 92295d8054289eff0d52b4d12349f9b9df0f58e4 (patch) | |
tree | 087e5dbbe2adb0559d4d1e79a7120f7b8995b150 /fs/ocfs2 | |
parent | a86370fbb65a0a2cb21d28bf25a748f6cc04385b (diff) |
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 <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/alloc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index ce62c152823d..97f0db5167c4 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c | |||
@@ -6093,8 +6093,6 @@ start: | |||
6093 | mlog(0, "clusters_to_del = %u in this pass, tail blk=%llu\n", | 6093 | mlog(0, "clusters_to_del = %u in this pass, tail blk=%llu\n", |
6094 | clusters_to_del, (unsigned long long)path_leaf_bh(path)->b_blocknr); | 6094 | clusters_to_del, (unsigned long long)path_leaf_bh(path)->b_blocknr); |
6095 | 6095 | ||
6096 | BUG_ON(clusters_to_del == 0); | ||
6097 | |||
6098 | mutex_lock(&tl_inode->i_mutex); | 6096 | mutex_lock(&tl_inode->i_mutex); |
6099 | tl_sem = 1; | 6097 | tl_sem = 1; |
6100 | /* ocfs2_truncate_log_needs_flush guarantees us at least one | 6098 | /* ocfs2_truncate_log_needs_flush guarantees us at least one |