aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-10-29 02:14:54 -0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-10-29 02:44:38 -0400
commit5d56b6718a0f4e5c58cdd3cb6b7a472d7c5671b9 (patch)
treec5648f1dccaff7edb642581ba9409e8fe427e5e3 /fs/f2fs/file.c
parent3b218e3a21ccec183472015f1d7168400b187a58 (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/file.c')
-rw-r--r--fs/f2fs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 2d4190a4abe3..58ed19aaa4c6 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -296,7 +296,7 @@ static int truncate_blocks(struct inode *inode, u64 from)
296 count = ADDRS_PER_BLOCK; 296 count = ADDRS_PER_BLOCK;
297 297
298 count -= dn.ofs_in_node; 298 count -= dn.ofs_in_node;
299 BUG_ON(count < 0); 299 f2fs_bug_on(count < 0);
300 300
301 if (dn.ofs_in_node || IS_INODE(dn.node_page)) { 301 if (dn.ofs_in_node || IS_INODE(dn.node_page)) {
302 truncate_data_blocks_range(&dn, count); 302 truncate_data_blocks_range(&dn, count);