summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-05-11 09:13:13 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2016-05-11 09:56:37 -0700
commit3b9b10f9ce61b574c63d71ff3eeec9cf5dbe763f (patch)
tree6a3490b6a5cc8c36fec8092277b0b204915ef10b /fs/f2fs
parent652be55162dcf3eb4440a4f7536ffedbe0352dcf (diff)
downloadop-kernel-dev-3b9b10f9ce61b574c63d71ff3eeec9cf5dbe763f.zip
op-kernel-dev-3b9b10f9ce61b574c63d71ff3eeec9cf5dbe763f.tar.gz
f2fs: avoid f2fs_bug_on during recovery
We don't need to use f2fs_bug_on() to treat with any error case when allocating a block during recovery. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/recovery.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c
index 2b25329..6303b2a 100644
--- a/fs/f2fs/recovery.c
+++ b/fs/f2fs/recovery.c
@@ -460,8 +460,7 @@ static int do_recover_data(struct f2fs_sb_info *sbi, struct inode *inode,
*/
if (dest == NEW_ADDR) {
truncate_data_blocks_range(&dn, 1);
- err = reserve_new_block(&dn);
- f2fs_bug_on(sbi, err);
+ reserve_new_block(&dn);
continue;
}
OpenPOWER on IntegriCloud