/linux-6.12.1/fs/xfs/libxfs/ |
D | xfs_inode_fork.c | 246 ip->i_df.if_format = dip->di_format; in xfs_iformat_data_fork() 249 ip->i_df.if_format == XFS_DINODE_FMT_BTREE ? 1 : 0); in xfs_iformat_data_fork() 262 switch (ip->i_df.if_format) { in xfs_iformat_data_fork() 310 ip->i_af.if_format = format; in xfs_ifork_init_attr() 313 ip->i_af.if_format == XFS_DINODE_FMT_BTREE ? 1 : 0); in xfs_ifork_init_attr() 322 ip->i_af.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_ifork_zap_attr() 339 switch (ip->i_af.if_format) { in xfs_iformat_attr_fork() 543 switch (ifp->if_format) { in xfs_idestroy_fork() 635 switch (ifp->if_format) { in xfs_iflush_fork() 705 ip->i_cowfp->if_format = XFS_DINODE_FMT_EXTENTS; in xfs_ifork_init_cow() [all …]
|
D | xfs_inode_fork.h | 24 int8_t if_format; /* format of this fork */ member 84 return ifp->if_format == XFS_DINODE_FMT_EXTENTS || in xfs_ifork_has_extents() 85 ifp->if_format == XFS_DINODE_FMT_BTREE; in xfs_ifork_has_extents() 99 return ifp->if_format; in xfs_ifork_format()
|
D | xfs_dir2_sf.c | 346 dp->i_df.if_format = XFS_DINODE_FMT_LOCAL; in xfs_dir2_block_to_sf() 380 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_addname() 811 if (dp->i_df.if_format == XFS_DINODE_FMT_EXTENTS) { in xfs_dir2_sf_create() 812 dp->i_df.if_format = XFS_DINODE_FMT_LOCAL; in xfs_dir2_sf_create() 815 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_create() 857 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_lookup() 932 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_removename() 1004 if (dp->i_df.if_format != XFS_DINODE_FMT_LOCAL) in xfs_dir2_sf_replace_needblock() 1030 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_replace()
|
D | xfs_attr.h | 578 return ip->i_af.if_format == XFS_DINODE_FMT_LOCAL || in xfs_attr_is_shortform() 579 (ip->i_af.if_format == XFS_DINODE_FMT_EXTENTS && in xfs_attr_is_shortform()
|
D | xfs_bmap.c | 138 ifp->if_format == XFS_DINODE_FMT_EXTENTS && in xfs_bmap_needs_btree() 150 ifp->if_format == XFS_DINODE_FMT_BTREE && in xfs_bmap_wants_extents() 207 if (ip->i_df.if_format == XFS_DINODE_FMT_DEV) in xfs_default_attroffset() 223 ip->i_df.if_format != XFS_DINODE_FMT_DEV && in xfs_bmap_forkoff_reset() 224 ip->i_df.if_format != XFS_DINODE_FMT_BTREE) { in xfs_bmap_forkoff_reset() 361 if (ifp->if_format != XFS_DINODE_FMT_BTREE) in xfs_bmap_check_leaf_extents() 584 ASSERT(ifp->if_format == XFS_DINODE_FMT_BTREE); in xfs_bmap_btree_to_extents() 619 ifp->if_format = XFS_DINODE_FMT_EXTENTS; in xfs_bmap_btree_to_extents() 655 ASSERT(ifp->if_format == XFS_DINODE_FMT_EXTENTS); in xfs_bmap_extents_to_btree() 677 ifp->if_format = XFS_DINODE_FMT_BTREE; in xfs_bmap_extents_to_btree() [all …]
|
D | xfs_inode_util.c | 335 ip->i_df.if_format = XFS_DINODE_FMT_DEV; in xfs_inode_init() 346 ip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_inode_init() 730 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_inode_uninit() 740 ip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_inode_uninit()
|
D | xfs_attr.c | 72 if (ip->i_af.if_format == XFS_DINODE_FMT_EXTENTS && in xfs_inode_hasattr() 92 if (ifp->if_nextents != 1 || ifp->if_format != XFS_DINODE_FMT_EXTENTS) in xfs_attr_is_leaf() 244 if (args->dp->i_af.if_format == XFS_DINODE_FMT_LOCAL) in xfs_attr_get_ilocked() 363 if (dp->i_af.if_format == XFS_DINODE_FMT_EXTENTS) in xfs_attr_try_sf_addname() 970 if (dp->i_af.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_attr_lookup()
|
D | xfs_exchmaps.c | 151 if (ifp1->if_format == XFS_DINODE_FMT_LOCAL || in xfs_exchmaps_check_forks() 152 ifp2->if_format == XFS_DINODE_FMT_LOCAL) in xfs_exchmaps_check_forks() 496 if (ifp->if_format == XFS_DINODE_FMT_LOCAL || in xfs_exchmaps_link_to_sf() 520 ifp->if_format = XFS_DINODE_FMT_LOCAL; in xfs_exchmaps_link_to_sf()
|
D | xfs_attr_leaf.c | 650 if (dp->i_df.if_format == XFS_DINODE_FMT_DEV) { in xfs_attr_shortform_bytesfit() 678 switch (dp->i_df.if_format) { in xfs_attr_shortform_bytesfit() 763 if (ifp->if_format == XFS_DINODE_FMT_EXTENTS) in xfs_attr_shortform_create() 764 ifp->if_format = XFS_DINODE_FMT_LOCAL; in xfs_attr_shortform_create() 814 ASSERT(ifp->if_format == XFS_DINODE_FMT_LOCAL); in xfs_attr_shortform_add() 893 (dp->i_df.if_format != XFS_DINODE_FMT_BTREE) && in xfs_attr_sf_removename() 904 dp->i_df.if_format == XFS_DINODE_FMT_BTREE || in xfs_attr_sf_removename() 928 ASSERT(args->dp->i_af.if_format == XFS_DINODE_FMT_LOCAL); in xfs_attr_shortform_getvalue() 1044 (dp->i_df.if_format != XFS_DINODE_FMT_BTREE) && in xfs_attr_shortform_allfit() 1165 ASSERT(dp->i_df.if_format != XFS_DINODE_FMT_BTREE); in xfs_attr3_leaf_to_shortform()
|
D | xfs_bmap_btree.c | 630 switch (ifp->if_format) { in xfs_bmbt_commit_staged_btree() 725 ASSERT(xfs_ifork_ptr(ip, whichfork)->if_format == XFS_DINODE_FMT_BTREE); in xfs_bmbt_change_owner()
|
/linux-6.12.1/fs/xfs/ |
D | xfs_bmap_util.c | 123 switch (ifp->if_format) { in xfs_bmap_count_blocks() 345 switch (ifp->if_format) { in xfs_getbmap() 1144 if (ifp->if_format == XFS_DINODE_FMT_LOCAL || in xfs_swap_extents_check_format() 1145 tifp->if_format == XFS_DINODE_FMT_LOCAL) in xfs_swap_extents_check_format() 1167 if (ifp->if_format == XFS_DINODE_FMT_EXTENTS && in xfs_swap_extents_check_format() 1168 tifp->if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extents_check_format() 1172 if (tifp->if_format == XFS_DINODE_FMT_EXTENTS && in xfs_swap_extents_check_format() 1177 if (ifp->if_format == XFS_DINODE_FMT_EXTENTS && in xfs_swap_extents_check_format() 1190 if (tifp->if_format == XFS_DINODE_FMT_BTREE) { in xfs_swap_extents_check_format() 1199 if (ifp->if_format == XFS_DINODE_FMT_BTREE) { in xfs_swap_extents_check_format() [all …]
|
D | xfs_symlink.c | 61 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_readlink() 353 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_inactive_symlink()
|
D | xfs_inode_item.c | 234 switch (ip->i_df.if_format) { in xfs_inode_item_data_fork_size() 275 switch (ip->i_af.if_format) { in xfs_inode_item_attr_fork_size() 340 switch (ip->i_df.if_format) { in xfs_inode_item_format_data_fork() 419 switch (ip->i_af.if_format) { in xfs_inode_item_format_attr_fork()
|
D | xfs_inode.c | 2354 ASSERT(ip->i_df.if_format != XFS_DINODE_FMT_BTREE || in xfs_iflush() 2376 ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS && in xfs_iflush() 2377 ip->i_df.if_format != XFS_DINODE_FMT_BTREE, in xfs_iflush() 2386 ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS && in xfs_iflush() 2387 ip->i_df.if_format != XFS_DINODE_FMT_BTREE && in xfs_iflush() 2388 ip->i_df.if_format != XFS_DINODE_FMT_LOCAL, in xfs_iflush() 2429 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL && in xfs_iflush() 2433 ip->i_af.if_format == XFS_DINODE_FMT_LOCAL && in xfs_iflush()
|
D | xfs_dir2_readdir.c | 61 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_getdents() 537 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xfs_readdir()
|
/linux-6.12.1/fs/xfs/scrub/ |
D | symlink_repair.c | 214 if (sc->ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xrep_symlink_salvage() 310 ifp->if_format = XFS_DINODE_FMT_EXTENTS; in xrep_symlink_swap_prep() 332 ip_local = sc->ip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_symlink_swap() 333 temp_local = sc->tempip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_symlink_swap() 433 sc->tempip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; in xrep_symlink_rebuild()
|
D | attr_repair.c | 813 if (sc->tempip->i_df.if_format == XFS_DINODE_FMT_BTREE) { in xrep_xattr_full_reset() 839 ifp->if_format = XFS_DINODE_FMT_LOCAL; in xrep_xattr_full_reset() 966 if (ip->i_df.if_format == XFS_DINODE_FMT_BTREE) { in xrep_xattr_fork_remove() 967 ifp->if_format = XFS_DINODE_FMT_LOCAL; in xrep_xattr_fork_remove() 985 ip->i_ino, ifp->if_nextents, ifp->if_format); in xrep_xattr_fork_remove() 1068 if (rx->sc->ip->i_af.if_format == XFS_DINODE_FMT_LOCAL) { in xrep_xattr_salvage_attributes() 1325 ifp->if_format = XFS_DINODE_FMT_EXTENTS; in xrep_xattr_swap_prep() 1347 ip_local = sc->ip->i_af.if_format == XFS_DINODE_FMT_LOCAL; in xrep_xattr_swap() 1348 temp_local = sc->tempip->i_af.if_format == XFS_DINODE_FMT_LOCAL; in xrep_xattr_swap()
|
D | tempfile.c | 560 if (ifp->if_format == XFS_DINODE_FMT_LOCAL) in xrep_tempexch_estimate() 564 if (tifp->if_format == XFS_DINODE_FMT_LOCAL) in xrep_tempexch_estimate() 811 ASSERT(temp_ifp->if_format == XFS_DINODE_FMT_LOCAL); in xrep_tempfile_copyout_local() 812 ASSERT(ifp->if_format == XFS_DINODE_FMT_LOCAL); in xrep_tempfile_copyout_local()
|
D | symlink.c | 74 if (ifp->if_format == XFS_DINODE_FMT_LOCAL) { in xchk_symlink()
|
D | bmap_repair.c | 656 ifake->if_fork->if_format = XFS_DINODE_FMT_EXTENTS; in xrep_bmap_build_new_fork() 659 ifake->if_fork->if_format = XFS_DINODE_FMT_BTREE; in xrep_bmap_build_new_fork() 733 switch (ifp->if_format) { in xrep_bmap_check_inputs()
|
D | cow_repair.c | 552 if (ifp->if_format != XFS_DINODE_FMT_EXTENTS) { in xrep_bmap_cow() 553 ifp->if_format = XFS_DINODE_FMT_EXTENTS; in xrep_bmap_cow()
|
D | bmap.c | 675 if (ifp->if_format != XFS_DINODE_FMT_EXTENTS || ifp->if_nextents != 0) in xchk_bmap_check_empty_attrfork() 723 if (ifp->if_format != XFS_DINODE_FMT_EXTENTS || ifp->if_nextents != 0) in xchk_bmap_check_empty_datafork() 956 switch (ifp->if_format) { in xchk_bmap()
|
D | dir_repair.c | 1012 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xrep_dir_find_entries() 1491 ifp->if_format = XFS_DINODE_FMT_EXTENTS; in xrep_dir_swap_prep() 1670 ip_local = sc->ip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_dir_swap() 1671 temp_local = sc->tempip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_dir_swap()
|
D | listxattr.c | 308 if (ip->i_af.if_format == XFS_DINODE_FMT_LOCAL) in xchk_xattr_walk()
|
D | dir.c | 802 if (ifp->if_format != XFS_DINODE_FMT_EXTENTS && in xchk_directory_blocks() 803 ifp->if_format != XFS_DINODE_FMT_BTREE) in xchk_directory_blocks() 1173 return dp->i_df.if_format == XFS_DINODE_FMT_EXTENTS && in xchk_dir_looks_zapped()
|