diff options
Diffstat (limited to 'fs/ocfs2/extent_map.c')
| -rw-r--r-- | fs/ocfs2/extent_map.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/ocfs2/extent_map.c b/fs/ocfs2/extent_map.c index f2fb40cd296a..b6ba292e9544 100644 --- a/fs/ocfs2/extent_map.c +++ b/fs/ocfs2/extent_map.c | |||
| @@ -262,8 +262,7 @@ static int ocfs2_extent_map_find_leaf(struct inode *inode, | |||
| 262 | el = &eb->h_list; | 262 | el = &eb->h_list; |
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | if (el->l_tree_depth) | 265 | BUG_ON(el->l_tree_depth); |
| 266 | BUG(); | ||
| 267 | 266 | ||
| 268 | for (i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { | 267 | for (i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { |
| 269 | rec = &el->l_recs[i]; | 268 | rec = &el->l_recs[i]; |
| @@ -364,8 +363,8 @@ static int ocfs2_extent_map_lookup_read(struct inode *inode, | |||
| 364 | return ret; | 363 | return ret; |
| 365 | } | 364 | } |
| 366 | 365 | ||
| 367 | if (ent->e_tree_depth) | 366 | /* FIXME: Make sure this isn't a corruption */ |
| 368 | BUG(); /* FIXME: Make sure this isn't a corruption */ | 367 | BUG_ON(ent->e_tree_depth); |
| 369 | 368 | ||
| 370 | *ret_ent = ent; | 369 | *ret_ent = ent; |
| 371 | 370 | ||
| @@ -423,8 +422,7 @@ static int ocfs2_extent_map_try_insert(struct inode *inode, | |||
| 423 | le32_to_cpu(rec->e_clusters), NULL, | 422 | le32_to_cpu(rec->e_clusters), NULL, |
| 424 | NULL); | 423 | NULL); |
| 425 | 424 | ||
| 426 | if (!old_ent) | 425 | BUG_ON(!old_ent); |
| 427 | BUG(); | ||
| 428 | 426 | ||
| 429 | ret = -EEXIST; | 427 | ret = -EEXIST; |
| 430 | if (old_ent->e_tree_depth < tree_depth) | 428 | if (old_ent->e_tree_depth < tree_depth) |
| @@ -988,7 +986,7 @@ int __init init_ocfs2_extent_maps(void) | |||
| 988 | return 0; | 986 | return 0; |
| 989 | } | 987 | } |
| 990 | 988 | ||
| 991 | void __exit exit_ocfs2_extent_maps(void) | 989 | void exit_ocfs2_extent_maps(void) |
| 992 | { | 990 | { |
| 993 | kmem_cache_destroy(ocfs2_em_ent_cachep); | 991 | kmem_cache_destroy(ocfs2_em_ent_cachep); |
| 994 | } | 992 | } |
