Commit de8b10ac authored by Zhikang Zhang's avatar Zhikang Zhang Committed by Jaegeuk Kim

f2fs: remove repeated f2fs_bug_on

f2fs: remove repeated f2fs_bug_on which has already existed
      in function invalidate_blocks.
Signed-off-by: default avatarZhikang Zhang <zhangzhikang1@huawei.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 736c0a74
...@@ -702,7 +702,6 @@ static void truncate_node(struct dnode_of_data *dn) ...@@ -702,7 +702,6 @@ static void truncate_node(struct dnode_of_data *dn)
struct node_info ni; struct node_info ni;
get_node_info(sbi, dn->nid, &ni); get_node_info(sbi, dn->nid, &ni);
f2fs_bug_on(sbi, ni.blk_addr == NULL_ADDR);
/* Deallocate node address */ /* Deallocate node address */
invalidate_blocks(sbi, ni.blk_addr); invalidate_blocks(sbi, ni.blk_addr);
...@@ -2238,7 +2237,6 @@ int recover_xattr_data(struct inode *inode, struct page *page) ...@@ -2238,7 +2237,6 @@ int recover_xattr_data(struct inode *inode, struct page *page)
/* 1: invalidate the previous xattr nid */ /* 1: invalidate the previous xattr nid */
get_node_info(sbi, prev_xnid, &ni); get_node_info(sbi, prev_xnid, &ni);
f2fs_bug_on(sbi, ni.blk_addr == NULL_ADDR);
invalidate_blocks(sbi, ni.blk_addr); invalidate_blocks(sbi, ni.blk_addr);
dec_valid_node_count(sbi, inode, false); dec_valid_node_count(sbi, inode, false);
set_node_addr(sbi, &ni, NULL_ADDR, false); set_node_addr(sbi, &ni, NULL_ADDR, false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment