diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-10-29 02:14:54 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-10-29 02:44:38 -0400 |
commit | 5d56b6718a0f4e5c58cdd3cb6b7a472d7c5671b9 (patch) | |
tree | c5648f1dccaff7edb642581ba9409e8fe427e5e3 /fs/f2fs/data.c | |
parent | 3b218e3a21ccec183472015f1d7168400b187a58 (diff) |
f2fs: add an option to avoid unnecessary BUG_ONs
If you want to remove unnecessary BUG_ONs, you can just turn off F2FS_CHECK_FS
in your kernel config.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index c8887d847dcf..aa3438c571fa 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c | |||
@@ -110,7 +110,7 @@ void update_extent_cache(block_t blk_addr, struct dnode_of_data *dn) | |||
110 | pgoff_t fofs, start_fofs, end_fofs; | 110 | pgoff_t fofs, start_fofs, end_fofs; |
111 | block_t start_blkaddr, end_blkaddr; | 111 | block_t start_blkaddr, end_blkaddr; |
112 | 112 | ||
113 | BUG_ON(blk_addr == NEW_ADDR); | 113 | f2fs_bug_on(blk_addr == NEW_ADDR); |
114 | fofs = start_bidx_of_node(ofs_of_node(dn->node_page), fi) + | 114 | fofs = start_bidx_of_node(ofs_of_node(dn->node_page), fi) + |
115 | dn->ofs_in_node; | 115 | dn->ofs_in_node; |
116 | 116 | ||
@@ -436,7 +436,7 @@ static int get_data_block_ro(struct inode *inode, sector_t iblock, | |||
436 | } | 436 | } |
437 | 437 | ||
438 | /* It does not support data allocation */ | 438 | /* It does not support data allocation */ |
439 | BUG_ON(create); | 439 | f2fs_bug_on(create); |
440 | 440 | ||
441 | if (dn.data_blkaddr != NEW_ADDR && dn.data_blkaddr != NULL_ADDR) { | 441 | if (dn.data_blkaddr != NEW_ADDR && dn.data_blkaddr != NULL_ADDR) { |
442 | int i; | 442 | int i; |