Home
last modified time | relevance | path

Searched refs:if_format (Results 1 – 25 of 38) sorted by relevance

12

/linux-6.12.1/fs/xfs/libxfs/
Dxfs_inode_fork.c246 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 …]
Dxfs_inode_fork.h24 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()
Dxfs_dir2_sf.c346 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()
Dxfs_attr.h578 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()
Dxfs_bmap.c138 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 …]
Dxfs_inode_util.c335 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()
Dxfs_attr.c72 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()
Dxfs_exchmaps.c151 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()
Dxfs_attr_leaf.c650 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()
Dxfs_bmap_btree.c630 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/
Dxfs_bmap_util.c123 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 …]
Dxfs_symlink.c61 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()
Dxfs_inode_item.c234 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()
Dxfs_inode.c2354 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()
Dxfs_dir2_readdir.c61 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/
Dsymlink_repair.c214 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()
Dattr_repair.c813 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()
Dtempfile.c560 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()
Dsymlink.c74 if (ifp->if_format == XFS_DINODE_FMT_LOCAL) { in xchk_symlink()
Dbmap_repair.c656 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()
Dcow_repair.c552 if (ifp->if_format != XFS_DINODE_FMT_EXTENTS) { in xrep_bmap_cow()
553 ifp->if_format = XFS_DINODE_FMT_EXTENTS; in xrep_bmap_cow()
Dbmap.c675 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()
Ddir_repair.c1012 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()
Dlistxattr.c308 if (ip->i_af.if_format == XFS_DINODE_FMT_LOCAL) in xchk_xattr_walk()
Ddir.c802 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()

12