f2fs: remove repeated f2fs_bug_on
authorZhikang Zhang <zhangzhikang1@huawei.com>
Sat, 25 Nov 2017 18:34:28 +0000 (02:34 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 27 Jan 2018 21:29:11 +0000 (13:29 -0800)
f2fs: remove repeated f2fs_bug_on which has already existed
      in function invalidate_blocks.

Signed-off-by: Zhikang Zhang <zhangzhikang1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c

index e46107fc9144b207cd118d489c70b26c46633254..4d85bd7c7296473a0e7f8ba0203cf2f7fff50cb7 100644 (file)
@@ -702,7 +702,6 @@ static void truncate_node(struct dnode_of_data *dn)
        struct node_info ni;
 
        get_node_info(sbi, dn->nid, &ni);
-       f2fs_bug_on(sbi, ni.blk_addr == NULL_ADDR);
 
        /* Deallocate node address */
        invalidate_blocks(sbi, ni.blk_addr);
@@ -2257,7 +2256,6 @@ int recover_xattr_data(struct inode *inode, struct page *page)
 
        /* 1: invalidate the previous xattr nid */
        get_node_info(sbi, prev_xnid, &ni);
-       f2fs_bug_on(sbi, ni.blk_addr == NULL_ADDR);
        invalidate_blocks(sbi, ni.blk_addr);
        dec_valid_node_count(sbi, inode, false);
        set_node_addr(sbi, &ni, NULL_ADDR, false);