| /linux/fs/xfs/libxfs/ |
| H A D | xfs_dir2_sf.c | 344 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_block_to_sf() 346 dp->i_df.if_format = XFS_DINODE_FMT_LOCAL; in xfs_dir2_block_to_sf() 368 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xfs_dir2_sf_addname() 380 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_addname() 382 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_addname() 463 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xfs_dir2_sf_addname_easy() 529 memcpy(oldsfp, dp->i_df.if_data, old_isize); in xfs_dir2_sf_addname_hard() 604 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xfs_dir2_sf_addname_pick() 666 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xfs_dir2_sf_check() 811 if (dp->i_df.if_format == XFS_DINODE_FMT_EXTENTS) { in xfs_dir2_sf_create() [all …]
|
| H A D | xfs_inode_util.c | 306 ip->i_df.if_nextents = 0; in xfs_inode_init() 327 ip->i_df.if_format = XFS_DINODE_FMT_DEV; in xfs_inode_init() 338 ip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_inode_init() 339 ip->i_df.if_bytes = 0; in xfs_inode_init() 340 ip->i_df.if_data = NULL; in xfs_inode_init() 722 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_inode_uninit() 723 kfree(ip->i_df.if_data); in xfs_inode_uninit() 724 ip->i_df.if_data = NULL; in xfs_inode_uninit() 725 ip->i_df.if_bytes = 0; in xfs_inode_uninit() 732 ip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_inode_uninit()
|
| H A D | xfs_inode_fork.c | 245 ip->i_df.if_format = dip->di_format; in xfs_iformat_data_fork() 246 ip->i_df.if_nextents = xfs_dfork_data_extents(dip); in xfs_iformat_data_fork() 247 smp_store_release(&ip->i_df.if_needextents, in xfs_iformat_data_fork() 248 ip->i_df.if_format == XFS_DINODE_FMT_BTREE ? 1 : 0); in xfs_iformat_data_fork() 261 switch (ip->i_df.if_format) { in xfs_iformat_data_fork() 651 return &ip->i_df; in xfs_iext_state_to_fork() 697 ip->i_df.if_data, ip->i_df.if_bytes, fa); in xfs_ifork_verify_local_data()
|
| H A D | xfs_inode_buf.c | 278 xfs_idestroy_fork(&ip->i_df); in xfs_inode_from_disk() 307 to->di_big_nextents = cpu_to_be64(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk_iext_counters() 315 to->di_nextents = cpu_to_be32(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk_iext_counters() 334 to->di_format = xfs_ifork_format(&ip->i_df); in xfs_inode_to_disk()
|
| H A D | xfs_dquot_buf.c | 402 if (XFS_IS_CORRUPT(mp, ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS && in xfs_dqinode_load() 403 ip->i_df.if_format != XFS_DINODE_FMT_BTREE)) { in xfs_dqinode_load()
|
| H A D | xfs_attr_leaf.c | 711 if (dp->i_df.if_format == XFS_DINODE_FMT_DEV) { in xfs_attr_shortform_bytesfit() 733 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit() 735 switch (dp->i_df.if_format) { in xfs_attr_shortform_bytesfit() 744 if (!dp->i_forkoff && dp->i_df.if_bytes > in xfs_attr_shortform_bytesfit() 760 dsize = xfs_bmap_bmdr_space(dp->i_df.if_broot); in xfs_attr_shortform_bytesfit() 982 (dp->i_df.if_format != XFS_DINODE_FMT_BTREE) && in xfs_attr_sf_removename() 992 dp->i_df.if_format == XFS_DINODE_FMT_BTREE || in xfs_attr_sf_removename() 1131 if ((dp->i_df.if_format != XFS_DINODE_FMT_BTREE) && in xfs_attr_shortform_allfit() 1251 ASSERT(dp->i_df.if_format != XFS_DINODE_FMT_BTREE); in xfs_attr3_leaf_to_shortform()
|
| H A D | xfs_bmap.c | 206 if (ip->i_df.if_format == XFS_DINODE_FMT_DEV) in xfs_default_attroffset() 222 ip->i_df.if_format != XFS_DINODE_FMT_DEV && in xfs_bmap_forkoff_reset() 223 ip->i_df.if_format != XFS_DINODE_FMT_BTREE) { in xfs_bmap_forkoff_reset() 364 if (ip->i_df.if_nextents > 10000) in xfs_bmap_check_leaf_extents() 889 struct xfs_btree_block *block = ip->i_df.if_broot; in xfs_bmap_add_attrfork_btree() 937 if (ip->i_df.if_nextents * sizeof(struct xfs_bmbt_rec) <= in xfs_bmap_add_attrfork_extents() 969 if (ip->i_df.if_bytes <= xfs_inode_data_fork_size(ip)) in xfs_bmap_add_attrfork_local() 1004 switch (ip->i_df.if_format) { in xfs_bmap_set_attrforkoff() 1050 switch (ip->i_df.if_format) { in xfs_bmap_add_attrfork() 4580 if (ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS) in xfs_bmapi_remap() [all …]
|
| H A D | xfs_symlink_remote.c | 340 ip->i_df.if_format = XFS_DINODE_FMT_LOCAL; in xfs_symlink_write_target()
|
| H A D | xfs_rtrmap_btree.c | 520 cur->bc_nlevels = be16_to_cpu(ip->i_df.if_broot->bb_level) + 1; in xfs_rtrmapbt_init_cursor() 1023 struct xfs_btree_block *block = rtg_rmap(rtg)->i_df.if_broot; in xfs_rtrmap_highest_rgbno()
|
| /linux/fs/xfs/ |
| H A D | xfs_symlink.c | 61 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_readlink() 66 if (XFS_IS_CORRUPT(ip->i_mount, !ip->i_df.if_data)) in xfs_readlink() 69 memcpy(link, ip->i_df.if_data, pathlen + 1); in xfs_readlink() 267 ASSERT(!xfs_need_iread_extents(&ip->i_df)); in xfs_inactive_symlink_rmt() 275 ASSERT(ip->i_df.if_nextents > 0 && ip->i_df.if_nextents <= 2); in xfs_inactive_symlink_rmt() 307 if (ip->i_df.if_bytes) in xfs_inactive_symlink_rmt() 308 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt() 309 ASSERT(ip->i_df.if_bytes == 0); in xfs_inactive_symlink_rmt() 353 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_inactive_symlink()
|
| H A D | xfs_inode_item.c | 238 switch (ip->i_df.if_format) { in xfs_inode_item_data_fork_size() 241 ip->i_df.if_nextents > 0 && in xfs_inode_item_data_fork_size() 242 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size() 251 ip->i_df.if_broot_bytes > 0) { in xfs_inode_item_data_fork_size() 252 *nbytes += ip->i_df.if_broot_bytes; in xfs_inode_item_data_fork_size() 258 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size() 259 *nbytes += xlog_calc_iovec_len(ip->i_df.if_bytes); in xfs_inode_item_data_fork_size() 344 switch (ip->i_df.if_format) { in xfs_inode_item_format_data_fork() 350 ip->i_df.if_nextents > 0 && in xfs_inode_item_format_data_fork() 351 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork() [all …]
|
| H A D | xfs_bmap_util.c | 534 if (xfs_need_iread_extents(&ip->i_df)) in xfs_can_free_eofblocks() 564 xfs_iext_lookup_extent(ip, &ip->i_df, end_fsb, &icur, &imap)) in xfs_can_free_eofblocks() 1147 struct xfs_ifork *ifp = &ip->i_df; in xfs_swap_extents_check_format() 1148 struct xfs_ifork *tifp = &tip->i_df; in xfs_swap_extents_check_format() 1215 xfs_bmap_bmdr_space(ip->i_df.if_broot) > xfs_inode_fork_boff(tip)) in xfs_swap_extents_check_format() 1408 if (ip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks() 1410 if (tip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks() 1417 swap(ip->i_df, tip->i_df); in xfs_swap_extent_forks() 1439 switch (ip->i_df.if_format) { in xfs_swap_extent_forks() 1450 switch (tip->i_df.if_format) { in xfs_swap_extent_forks() [all …]
|
| H A D | xfs_inode.c | 71 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_data_map_shared() 1184 ASSERT(ip->i_df.if_nextents == 0); in xfs_inactive_truncate() 1398 ASSERT(ip->i_df.if_broot_bytes == 0); in xfs_inactive() 1458 if (S_ISDIR(VFS_I(ip)->i_mode) && ip->i_df.if_nextents > 0) { in xfs_inactive() 1801 ASSERT(ip->i_df.if_nextents == 0); in xfs_ifree() 2379 ASSERT(ip->i_df.if_format != XFS_DINODE_FMT_BTREE || in xfs_iflush() 2380 ip->i_df.if_nextents > XFS_IFORK_MAXEXT(ip, XFS_DATA_FORK)); in xfs_iflush() 2399 if (ip->i_df.if_format == XFS_DINODE_FMT_META_BTREE) { in xfs_iflush() 2409 if ((ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS && in xfs_iflush() 2410 ip->i_df.if_format != XFS_DINODE_FMT_BTREE) || in xfs_iflush() [all …]
|
| H A D | xfs_dir2_readdir.c | 55 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xfs_dir2_sf_getdents() 61 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_getdents() 62 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_getdents() 537 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xfs_readdir()
|
| H A D | xfs_aops.c | 309 if (XFS_WPC(wpc)->data_seq != READ_ONCE(ip->i_df.if_seq)) { in xfs_imap_valid() 375 ASSERT(!xfs_need_iread_extents(&ip->i_df)); in xfs_map_blocks() 406 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks() 408 XFS_WPC(wpc)->data_seq = READ_ONCE(ip->i_df.if_seq); in xfs_map_blocks()
|
| H A D | xfs_inode.h | 38 struct xfs_ifork i_df; /* data fork */ member 121 return &ip->i_df; in xfs_ifork_ptr() 321 return ip->i_df.if_nextents > 0 || ip->i_delayed_blks > 0; in xfs_inode_has_filedata()
|
| H A D | xfs_iomap.c | 68 return cookie | READ_ONCE(ip->i_df.if_seq); in xfs_iomap_inode_sequence() 782 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_for_iomap() 787 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_for_iomap() 1072 if (xfs_need_iread_extents(&ip->i_df)) { in xfs_zoned_direct_write_iomap_begin() 1621 if (XFS_IS_CORRUPT(mp, !xfs_ifork_has_extents(&ip->i_df)) || in xfs_zoned_buffered_write_iomap_begin() 1650 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &scur, in xfs_zoned_buffered_write_iomap_begin() 1797 if (XFS_IS_CORRUPT(mp, !xfs_ifork_has_extents(&ip->i_df)) || in xfs_buffered_write_iomap_begin() 1816 eof = !xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap); in xfs_buffered_write_iomap_begin() 2168 if (xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) { in xfs_seek_iomap_begin()
|
| H A D | xfs_itable.c | 155 nextents = xfs_ifork_nextents(&ip->i_df); in xfs_bulkstat_one_int() 173 switch (ip->i_df.if_format) { in xfs_bulkstat_one_int()
|
| H A D | xfs_quotaops.c | 40 tstate->nextents = ip->i_df.if_nextents; in xfs_qm_fill_state()
|
| /linux/fs/xfs/scrub/ |
| H A D | symlink_repair.c | 215 if (sc->ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xrep_symlink_salvage() 333 ip_local = sc->ip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_symlink_swap() 334 temp_local = sc->tempip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_symlink_swap() 432 xfs_idestroy_fork(&sc->tempip->i_df); in xrep_symlink_rebuild() 433 sc->tempip->i_df.if_bytes = 0; in xrep_symlink_rebuild() 434 sc->tempip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; in xrep_symlink_rebuild()
|
| H A D | readdir.c | 40 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xchk_dir_walk_sf() 46 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xchk_dir_walk_sf()
|
| H A D | dir_repair.c | 1022 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xrep_dir_find_entries() 1206 if (S_ISDIR(VFS_I(ip)->i_mode) && xfs_need_iread_extents(&ip->i_df)) { in xrep_dir_scan_ilock() 1680 ip_local = sc->ip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_dir_swap() 1681 temp_local = sc->tempip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_dir_swap()
|
| H A D | parent.c | 95 if (!xfs_need_iread_extents(&dp->i_df)) in xchk_parent_ilock_dir() 364 if (!xfs_need_iread_extents(&dp->i_df)) in xchk_parent_lock_dir()
|
| H A D | rtbitmap.c | 160 if (xfs_iext_lookup_extent(ip, &ip->i_df, endoff, &icur, &map)) { in xchk_rtbitmap_check_extents()
|
| H A D | rtsummary.c | 246 if (xfs_iext_lookup_extent(ip, &ip->i_df, endoff, &icur, &map)) { in xchk_rtsum_compare()
|