File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -283,15 +283,6 @@ static inline void bch2_inode_nlink_set(struct bch_inode_unpacked *bi,
283
283
int bch2_inode_nlink_inc (struct bch_inode_unpacked * );
284
284
void bch2_inode_nlink_dec (struct btree_trans * , struct bch_inode_unpacked * );
285
285
286
- static inline bool bch2_inode_should_have_single_bp (struct bch_inode_unpacked * inode )
287
- {
288
- bool inode_has_bp = inode -> bi_dir || inode -> bi_dir_offset ;
289
-
290
- return S_ISDIR (inode -> bi_mode ) ||
291
- inode -> bi_subvol ||
292
- (!inode -> bi_nlink && inode_has_bp );
293
- }
294
-
295
286
struct bch_opts bch2_inode_opts_to_opts (struct bch_inode_unpacked * );
296
287
void bch2_inode_opts_get (struct bch_io_opts * , struct bch_fs * ,
297
288
struct bch_inode_unpacked * );
Original file line number Diff line number Diff line change @@ -733,15 +733,6 @@ static int bch2_check_dirent_inode_dirent(struct btree_trans *trans,
733
733
return __bch2_fsck_write_inode (trans , target );
734
734
}
735
735
736
- if (bch2_inode_should_have_single_bp (target ) &&
737
- !fsck_err (trans , inode_wrong_backpointer ,
738
- "dirent points to inode that does not point back:\n%s" ,
739
- (bch2_bkey_val_to_text (& buf , c , d .s_c ),
740
- prt_newline (& buf ),
741
- bch2_inode_unpacked_to_text (& buf , target ),
742
- buf .buf )))
743
- goto err ;
744
-
745
736
struct bkey_s_c_dirent bp_dirent =
746
737
bch2_bkey_get_iter_typed (trans , & bp_iter , BTREE_ID_dirents ,
747
738
SPOS (target -> bi_dir , target -> bi_dir_offset , target -> bi_snapshot ),
You can’t perform that action at this time.
0 commit comments