@@ -854,9 +854,9 @@ static int check_inode(struct btree_trans *trans,
854854 BUG_ON (bch2_inode_unpack (k , & u ));
855855
856856 if (!full &&
857- !(u .bi_flags & (BCH_INODE_I_SIZE_DIRTY |
858- BCH_INODE_I_SECTORS_DIRTY |
859- BCH_INODE_UNLINKED )))
857+ !(u .bi_flags & (BCH_INODE_i_size_dirty |
858+ BCH_INODE_i_sectors_dirty |
859+ BCH_INODE_unlinked )))
860860 return 0 ;
861861
862862 if (prev -> bi_inum != u .bi_inum )
@@ -870,15 +870,15 @@ static int check_inode(struct btree_trans *trans,
870870 return - EINVAL ;
871871 }
872872
873- if ((u .bi_flags & (BCH_INODE_I_SIZE_DIRTY | BCH_INODE_UNLINKED )) &&
873+ if ((u .bi_flags & (BCH_INODE_i_size_dirty | BCH_INODE_unlinked )) &&
874874 bch2_key_has_snapshot_overwrites (trans , BTREE_ID_inodes , k .k -> p )) {
875875 struct bpos new_min_pos ;
876876
877877 ret = bch2_propagate_key_to_snapshot_leaves (trans , iter -> btree_id , k , & new_min_pos );
878878 if (ret )
879879 goto err ;
880880
881- u .bi_flags &= ~BCH_INODE_I_SIZE_DIRTY | BCH_INODE_UNLINKED ;
881+ u .bi_flags &= ~BCH_INODE_i_size_dirty | BCH_INODE_unlinked ;
882882
883883 ret = __write_inode (trans , & u , iter -> pos .snapshot );
884884 bch_err_msg (c , ret , "in fsck updating inode" );
@@ -890,7 +890,7 @@ static int check_inode(struct btree_trans *trans,
890890 return 0 ;
891891 }
892892
893- if (u .bi_flags & BCH_INODE_UNLINKED &&
893+ if (u .bi_flags & BCH_INODE_unlinked &&
894894 (!c -> sb .clean ||
895895 fsck_err (c , inode_unlinked_but_clean ,
896896 "filesystem marked clean, but inode %llu unlinked" ,
@@ -903,7 +903,7 @@ static int check_inode(struct btree_trans *trans,
903903 return ret ;
904904 }
905905
906- if (u .bi_flags & BCH_INODE_I_SIZE_DIRTY &&
906+ if (u .bi_flags & BCH_INODE_i_size_dirty &&
907907 (!c -> sb .clean ||
908908 fsck_err (c , inode_i_size_dirty_but_clean ,
909909 "filesystem marked clean, but inode %llu has i_size dirty" ,
@@ -930,13 +930,13 @@ static int check_inode(struct btree_trans *trans,
930930 * We truncated without our normal sector accounting hook, just
931931 * make sure we recalculate it:
932932 */
933- u .bi_flags |= BCH_INODE_I_SECTORS_DIRTY ;
933+ u .bi_flags |= BCH_INODE_i_sectors_dirty ;
934934
935- u .bi_flags &= ~BCH_INODE_I_SIZE_DIRTY ;
935+ u .bi_flags &= ~BCH_INODE_i_size_dirty ;
936936 do_update = true;
937937 }
938938
939- if (u .bi_flags & BCH_INODE_I_SECTORS_DIRTY &&
939+ if (u .bi_flags & BCH_INODE_i_sectors_dirty &&
940940 (!c -> sb .clean ||
941941 fsck_err (c , inode_i_sectors_dirty_but_clean ,
942942 "filesystem marked clean, but inode %llu has i_sectors dirty" ,
@@ -953,14 +953,14 @@ static int check_inode(struct btree_trans *trans,
953953 }
954954
955955 u .bi_sectors = sectors ;
956- u .bi_flags &= ~BCH_INODE_I_SECTORS_DIRTY ;
956+ u .bi_flags &= ~BCH_INODE_i_sectors_dirty ;
957957 do_update = true;
958958 }
959959
960- if (u .bi_flags & BCH_INODE_BACKPTR_UNTRUSTED ) {
960+ if (u .bi_flags & BCH_INODE_backptr_untrusted ) {
961961 u .bi_dir = 0 ;
962962 u .bi_dir_offset = 0 ;
963- u .bi_flags &= ~BCH_INODE_BACKPTR_UNTRUSTED ;
963+ u .bi_flags &= ~BCH_INODE_backptr_untrusted ;
964964 do_update = true;
965965 }
966966
@@ -1065,7 +1065,7 @@ static int check_i_sectors(struct btree_trans *trans, struct inode_walker *w)
10651065 return - BCH_ERR_internal_fsck_err ;
10661066 }
10671067
1068- if (fsck_err_on (!(i -> inode .bi_flags & BCH_INODE_I_SECTORS_DIRTY ),
1068+ if (fsck_err_on (!(i -> inode .bi_flags & BCH_INODE_i_sectors_dirty ),
10691069 c , inode_i_sectors_wrong ,
10701070 "inode %llu:%u has incorrect i_sectors: got %llu, should be %llu" ,
10711071 w -> last_pos .inode , i -> snapshot ,
@@ -1405,7 +1405,7 @@ static int check_extent(struct btree_trans *trans, struct btree_iter *iter,
14051405 continue ;
14061406
14071407 if (k .k -> type != KEY_TYPE_whiteout ) {
1408- if (fsck_err_on (!(i -> inode .bi_flags & BCH_INODE_I_SIZE_DIRTY ) &&
1408+ if (fsck_err_on (!(i -> inode .bi_flags & BCH_INODE_i_size_dirty ) &&
14091409 k .k -> p .offset > round_up (i -> inode .bi_size , block_bytes (c )) >> 9 &&
14101410 !bkey_extent_is_reservation (k ),
14111411 c , extent_past_end_of_inode ,
@@ -1588,7 +1588,7 @@ static int check_dirent_target(struct btree_trans *trans,
15881588 "inode %llu type %s has multiple links but i_nlink 0" ,
15891589 target -> bi_inum , bch2_d_types [d .v -> d_type ])) {
15901590 target -> bi_nlink ++ ;
1591- target -> bi_flags &= ~BCH_INODE_UNLINKED ;
1591+ target -> bi_flags &= ~BCH_INODE_unlinked ;
15921592
15931593 ret = __write_inode (trans , target , target_snapshot );
15941594 if (ret )
@@ -2160,7 +2160,7 @@ int bch2_check_directory_structure(struct bch_fs *c)
21602160 break ;
21612161 }
21622162
2163- if (u .bi_flags & BCH_INODE_UNLINKED )
2163+ if (u .bi_flags & BCH_INODE_unlinked )
21642164 continue ;
21652165
21662166 ret = check_path (trans , & path , & u , iter .pos .snapshot );
0 commit comments