/fs/xfs/libxfs/ |
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() 381 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_addname() 383 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_addname() 384 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_addname() 385 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname() 468 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname_easy() 478 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname_easy() 531 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname_hard() 563 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname_hard() [all …]
|
D | xfs_inode_fork.c | 235 ip->i_df.if_format = dip->di_format; in xfs_iformat_data_fork() 236 ip->i_df.if_nextents = xfs_dfork_data_extents(dip); in xfs_iformat_data_fork() 237 smp_store_release(&ip->i_df.if_needextents, in xfs_iformat_data_fork() 238 ip->i_df.if_format == XFS_DINODE_FMT_BTREE ? 1 : 0); in xfs_iformat_data_fork() 251 switch (ip->i_df.if_format) { in xfs_iformat_data_fork() 679 return &ip->i_df; in xfs_iext_state_to_fork() 717 ip->i_df.if_u1.if_data, ip->i_df.if_bytes, fa); in xfs_ifork_verify_local_data()
|
D | xfs_dir2.c | 199 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir_isempty() 294 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_createname() 389 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_lookup() 459 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_removename() 520 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_replace()
|
D | xfs_inode_buf.c | 259 xfs_idestroy_fork(&ip->i_df); in xfs_inode_from_disk() 288 to->di_big_nextents = cpu_to_be64(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk_iext_counters() 296 to->di_nextents = cpu_to_be32(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk_iext_counters() 312 to->di_format = xfs_ifork_format(&ip->i_df); in xfs_inode_to_disk()
|
D | xfs_attr_leaf.c | 578 if (dp->i_df.if_format == XFS_DINODE_FMT_DEV) { in xfs_attr_shortform_bytesfit() 604 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit() 606 switch (dp->i_df.if_format) { in xfs_attr_shortform_bytesfit() 615 if (!dp->i_forkoff && dp->i_df.if_bytes > in xfs_attr_shortform_bytesfit() 631 dsize = XFS_BMAP_BROOT_SPACE(mp, dp->i_df.if_broot); in xfs_attr_shortform_bytesfit() 856 (dp->i_df.if_format != XFS_DINODE_FMT_BTREE) && in xfs_attr_sf_removename() 866 dp->i_df.if_format == XFS_DINODE_FMT_BTREE); in xfs_attr_sf_removename() 1037 (dp->i_df.if_format != XFS_DINODE_FMT_BTREE) && in xfs_attr_shortform_allfit() 1169 ASSERT(dp->i_df.if_format != XFS_DINODE_FMT_BTREE); in xfs_attr3_leaf_to_shortform()
|
D | xfs_bmap.c | 203 if (ip->i_df.if_format == XFS_DINODE_FMT_DEV) in xfs_default_attroffset() 219 ip->i_df.if_format != XFS_DINODE_FMT_DEV && in xfs_bmap_forkoff_reset() 220 ip->i_df.if_format != XFS_DINODE_FMT_BTREE) { in xfs_bmap_forkoff_reset() 339 if (ip->i_df.if_nextents > 10000) in xfs_bmap_check_leaf_extents() 864 struct xfs_btree_block *block = ip->i_df.if_broot; in xfs_bmap_add_attrfork_btree() 911 if (ip->i_df.if_nextents * sizeof(struct xfs_bmbt_rec) <= in xfs_bmap_add_attrfork_extents() 943 if (ip->i_df.if_bytes <= xfs_inode_data_fork_size(ip)) in xfs_bmap_add_attrfork_local() 977 switch (ip->i_df.if_format) { in xfs_bmap_set_attrforkoff() 1036 switch (ip->i_df.if_format) { in xfs_bmap_add_attrfork() 4702 if (ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS) in xfs_bmapi_remap() [all …]
|
D | xfs_dir2_block.c | 1107 ASSERT(dp->i_df.if_nextents == 0); in xfs_dir2_sf_to_block()
|
/fs/xfs/ |
D | xfs_inode_item.c | 201 switch (ip->i_df.if_format) { in xfs_inode_item_data_fork_size() 204 ip->i_df.if_nextents > 0 && in xfs_inode_item_data_fork_size() 205 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size() 213 ip->i_df.if_broot_bytes > 0) { in xfs_inode_item_data_fork_size() 214 *nbytes += ip->i_df.if_broot_bytes; in xfs_inode_item_data_fork_size() 220 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size() 221 *nbytes += xlog_calc_iovec_len(ip->i_df.if_bytes); in xfs_inode_item_data_fork_size() 307 switch (ip->i_df.if_format) { in xfs_inode_item_format_data_fork() 313 ip->i_df.if_nextents > 0 && in xfs_inode_item_format_data_fork() 314 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork() [all …]
|
D | xfs_symlink.c | 126 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_readlink() 131 if (XFS_IS_CORRUPT(ip->i_mount, !ip->i_df.if_u1.if_data)) in xfs_readlink() 134 memcpy(link, ip->i_df.if_u1.if_data, pathlen + 1); in xfs_readlink() 263 ip->i_df.if_format = XFS_DINODE_FMT_LOCAL; in xfs_symlink() 388 ASSERT(!xfs_need_iread_extents(&ip->i_df)); in xfs_inactive_symlink_rmt() 396 ASSERT(ip->i_df.if_nextents > 0 && ip->i_df.if_nextents <= 2); in xfs_inactive_symlink_rmt() 458 if (ip->i_df.if_bytes) in xfs_inactive_symlink_rmt() 459 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt() 460 ASSERT(ip->i_df.if_bytes == 0); in xfs_inactive_symlink_rmt() 503 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_inactive_symlink()
|
D | xfs_inode.c | 117 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_data_map_shared() 843 ip->i_df.if_nextents = 0; in xfs_init_new_inode() 865 ip->i_df.if_format = XFS_DINODE_FMT_DEV; in xfs_init_new_inode() 876 ip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_init_new_inode() 877 ip->i_df.if_bytes = 0; in xfs_init_new_inode() 878 ip->i_df.if_u1.if_root = NULL; in xfs_init_new_inode() 1537 ASSERT(ip->i_df.if_nextents == 0); in xfs_inactive_truncate() 1720 ASSERT(ip->i_df.if_broot_bytes == 0); in xfs_inactive() 1760 ip->i_df.if_nextents > 0 || ip->i_delayed_blks > 0)) in xfs_inactive() 2375 ASSERT(ip->i_df.if_nextents == 0); in xfs_ifree() [all …]
|
D | xfs_bmap_util.c | 597 struct xfs_ifork *ifp = &ip->i_df; in xfs_bmap_punch_delalloc_range() 675 if (xfs_need_iread_extents(&ip->i_df)) in xfs_can_free_eofblocks() 1270 struct xfs_ifork *ifp = &ip->i_df; in xfs_swap_extents_check_format() 1271 struct xfs_ifork *tifp = &tip->i_df; in xfs_swap_extents_check_format() 1338 XFS_BMAP_BMDR_SPACE(ip->i_df.if_broot) > xfs_inode_fork_boff(tip)) in xfs_swap_extents_check_format() 1537 if (ip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks() 1539 if (tip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks() 1546 swap(ip->i_df, tip->i_df); in xfs_swap_extent_forks() 1568 switch (ip->i_df.if_format) { in xfs_swap_extent_forks() 1579 switch (tip->i_df.if_format) { in xfs_swap_extent_forks() [all …]
|
D | xfs_dir2_readdir.c | 60 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_getdents() 61 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_getdents() 62 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_getdents() 64 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_getdents() 531 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xfs_readdir()
|
D | xfs_aops.c | 222 if (XFS_WPC(wpc)->data_seq != READ_ONCE(ip->i_df.if_seq)) { in xfs_imap_valid() 326 ASSERT(!xfs_need_iread_extents(&ip->i_df)); in xfs_map_blocks() 357 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks() 359 XFS_WPC(wpc)->data_seq = READ_ONCE(ip->i_df.if_seq); in xfs_map_blocks()
|
D | xfs_iomap.c | 62 return cookie | READ_ONCE(ip->i_df.if_seq); in xfs_iomap_inode_sequence() 727 if (xfs_need_iread_extents(&ip->i_df)) { in xfs_ilock_for_iomap() 987 if (XFS_IS_CORRUPT(mp, !xfs_ifork_has_extents(&ip->i_df)) || in xfs_buffered_write_iomap_begin() 1005 eof = !xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap); in xfs_buffered_write_iomap_begin() 1302 if (xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) { in xfs_seek_iomap_begin()
|
D | xfs_itable.c | 122 nextents = xfs_ifork_nextents(&ip->i_df); in xfs_bulkstat_one_int() 140 switch (ip->i_df.if_format) { in xfs_bulkstat_one_int()
|
D | xfs_inode.h | 37 struct xfs_ifork i_df; /* data fork */ member 114 return &ip->i_df; in xfs_ifork_ptr()
|
D | xfs_quotaops.c | 39 tstate->nextents = ip->i_df.if_nextents; in xfs_qm_fill_state()
|
D | xfs_icache.c | 104 memset(&ip->i_df, 0, sizeof(ip->i_df)); in xfs_inode_alloc() 132 xfs_idestroy_fork(&ip->i_df); in xfs_inode_free_callback()
|
D | xfs_qm_syscalls.c | 89 ASSERT(ip->i_df.if_nextents == 0); in xfs_qm_scall_trunc_qfile()
|
D | xfs_ioctl.c | 1128 if (ip->i_df.if_nextents || ip->i_delayed_blks) in xfs_ioctl_setattr_xflags() 1238 if (S_ISREG(VFS_I(ip)->i_mode) && ip->i_df.if_nextents && in xfs_ioctl_setattr_check_extsize()
|
D | xfs_dquot.c | 729 if (xfs_iext_lookup_extent(quotip, "ip->i_df, start, &cur, &got)) { in xfs_dq_get_next_id()
|
D | xfs_iops.c | 811 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size()
|
D | xfs_file.c | 1256 if (ip->i_df.if_nextents > 0) in xfs_dir_open()
|
/fs/xfs/scrub/ |
D | readdir.c | 45 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xchk_dir_walk_sf() 46 ASSERT(dp->i_df.if_u1.if_data != NULL); in xchk_dir_walk_sf() 48 sfp = (struct xfs_dir2_sf_hdr *)dp->i_df.if_u1.if_data; in xchk_dir_walk_sf() 288 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xchk_dir_walk() 339 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xchk_dir_lookup()
|
D | parent.c | 77 if (!xfs_need_iread_extents(&dp->i_df)) in xchk_parent_ilock_dir()
|