Home
last modified time | relevance | path

Searched refs:i_df (Results 1 – 25 of 26) sorted by relevance

12

/linux/fs/xfs/libxfs/
A Dxfs_dir2_sf.c344 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()
384 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_addname()
830 dp->i_df.if_format = XFS_DINODE_FMT_LOCAL; in xfs_dir2_sf_create()
834 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_sf_create()
881 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_lookup()
958 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename()
959 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_removename()
1057 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_replace()
1178 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino4()
[all …]
A Dxfs_inode_fork.c232 ip->i_df.if_format = dip->di_format; in xfs_iformat_data_fork()
233 ip->i_df.if_nextents = be32_to_cpu(dip->di_nextents); in xfs_iformat_data_fork()
246 switch (ip->i_df.if_format) { in xfs_iformat_data_fork()
666 return &ip->i_df; in xfs_iext_state_to_fork()
704 ip->i_df.if_u1.if_data, ip->i_df.if_bytes, fa); in xfs_ifork_verify_local_data()
A Dxfs_dir2.c186 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir_isempty()
281 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_createname()
376 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_lookup()
446 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_removename()
507 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_replace()
A Dxfs_inode_buf.c259 xfs_idestroy_fork(&ip->i_df); in xfs_inode_from_disk()
293 to->di_format = xfs_ifork_format(&ip->i_df); in xfs_inode_to_disk()
310 to->di_nextents = cpu_to_be32(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk()
A Dxfs_inode_fork.h99 &(ip)->i_df : \
A Dxfs_attr_leaf.c548 if (dp->i_df.if_format == XFS_DINODE_FMT_DEV) { in xfs_attr_shortform_bytesfit()
574 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit()
576 switch (dp->i_df.if_format) { in xfs_attr_shortform_bytesfit()
585 if (!dp->i_forkoff && dp->i_df.if_bytes > in xfs_attr_shortform_bytesfit()
601 dsize = XFS_BMAP_BROOT_SPACE(mp, dp->i_df.if_broot); in xfs_attr_shortform_bytesfit()
820 (dp->i_df.if_format != XFS_DINODE_FMT_BTREE) && in xfs_attr_sf_removename()
830 dp->i_df.if_format == XFS_DINODE_FMT_BTREE); in xfs_attr_sf_removename()
1006 (dp->i_df.if_format != XFS_DINODE_FMT_BTREE) && in xfs_attr_shortform_allfit()
1131 ASSERT(dp->i_df.if_format != XFS_DINODE_FMT_BTREE); in xfs_attr3_leaf_to_shortform()
A Dxfs_bmap.c205 if (ip->i_df.if_format == XFS_DINODE_FMT_DEV) in xfs_default_attroffset()
221 ip->i_df.if_format != XFS_DINODE_FMT_DEV && in xfs_bmap_forkoff_reset()
222 ip->i_df.if_format != XFS_DINODE_FMT_BTREE) { in xfs_bmap_forkoff_reset()
341 if (ip->i_df.if_nextents > 10000) in xfs_bmap_check_leaf_extents()
877 struct xfs_btree_block *block = ip->i_df.if_broot; in xfs_bmap_add_attrfork_btree()
924 if (ip->i_df.if_nextents * sizeof(struct xfs_bmbt_rec) <= in xfs_bmap_add_attrfork_extents()
956 if (ip->i_df.if_bytes <= XFS_IFORK_DSIZE(ip)) in xfs_bmap_add_attrfork_local()
990 switch (ip->i_df.if_format) { in xfs_bmap_set_attrforkoff()
1050 switch (ip->i_df.if_format) { in xfs_bmap_add_attrfork()
4693 if (ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS) in xfs_bmapi_remap()
[all …]
A Dxfs_dir2_block.c1107 ASSERT(dp->i_df.if_nextents == 0); in xfs_dir2_sf_to_block()
/linux/fs/xfs/
A Dxfs_inode_item.c53 switch (ip->i_df.if_format) { in xfs_inode_item_data_fork_size()
56 ip->i_df.if_nextents > 0 && in xfs_inode_item_data_fork_size()
57 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
65 ip->i_df.if_broot_bytes > 0) { in xfs_inode_item_data_fork_size()
72 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
159 switch (ip->i_df.if_format) { in xfs_inode_item_format_data_fork()
165 ip->i_df.if_nextents > 0 && in xfs_inode_item_format_data_fork()
166 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork()
191 ip->i_df.if_broot, in xfs_inode_item_format_data_fork()
192 ip->i_df.if_broot_bytes); in xfs_inode_item_format_data_fork()
[all …]
A Dxfs_symlink.c108 ASSERT(ip->i_df.if_format != XFS_DINODE_FMT_LOCAL); in xfs_readlink()
259 ip->i_df.if_format = XFS_DINODE_FMT_LOCAL; in xfs_symlink()
384 ASSERT(!xfs_need_iread_extents(&ip->i_df)); in xfs_inactive_symlink_rmt()
392 ASSERT(ip->i_df.if_nextents > 0 && ip->i_df.if_nextents <= 2); in xfs_inactive_symlink_rmt()
454 if (ip->i_df.if_bytes) in xfs_inactive_symlink_rmt()
455 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt()
456 ASSERT(ip->i_df.if_bytes == 0); in xfs_inactive_symlink_rmt()
499 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_inactive_symlink()
A Dxfs_inode.c115 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_data_map_shared()
853 ip->i_df.if_nextents = 0; in xfs_init_new_inode()
876 ip->i_df.if_format = XFS_DINODE_FMT_DEV; in xfs_init_new_inode()
888 ip->i_df.if_bytes = 0; in xfs_init_new_inode()
889 ip->i_df.if_u1.if_root = NULL; in xfs_init_new_inode()
1546 ASSERT(ip->i_df.if_nextents == 0); in xfs_inactive_truncate()
1735 ASSERT(ip->i_df.if_broot_bytes == 0); in xfs_inactive()
2624 ASSERT(ip->i_df.if_nextents == 0); in xfs_ifree()
2647 kmem_free(ip->i_df.if_u1.if_data); in xfs_ifree()
2648 ip->i_df.if_u1.if_data = NULL; in xfs_ifree()
[all …]
A Dxfs_bmap_util.c595 struct xfs_ifork *ifp = &ip->i_df; in xfs_bmap_punch_delalloc_range()
672 if (xfs_need_iread_extents(&ip->i_df)) in xfs_can_free_eofblocks()
1259 struct xfs_ifork *ifp = &ip->i_df; in xfs_swap_extents_check_format()
1260 struct xfs_ifork *tifp = &tip->i_df; in xfs_swap_extents_check_format()
1520 if (ip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks()
1522 if (tip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks()
1529 swap(ip->i_df, tip->i_df); in xfs_swap_extent_forks()
1551 switch (ip->i_df.if_format) { in xfs_swap_extent_forks()
1562 switch (tip->i_df.if_format) { in xfs_swap_extent_forks()
1683 uint32_t ipnext = ip->i_df.if_nextents; in xfs_swap_extents()
[all …]
A Dxfs_dir2_readdir.c60 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()
525 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xfs_readdir()
A Dxfs_aops.c207 if (XFS_WPC(wpc)->data_seq != READ_ONCE(ip->i_df.if_seq)) in xfs_imap_valid()
303 ASSERT(!xfs_need_iread_extents(&ip->i_df)); in xfs_map_blocks()
334 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks()
336 XFS_WPC(wpc)->data_seq = READ_ONCE(ip->i_df.if_seq); in xfs_map_blocks()
A Dxfs_itable.c105 buf->bs_extents = xfs_ifork_nextents(&ip->i_df); in xfs_bulkstat_one_int()
118 switch (ip->i_df.if_format) { in xfs_bulkstat_one_int()
A Dxfs_iomap.c670 if (xfs_need_iread_extents(&ip->i_df)) { in xfs_ilock_for_iomap()
889 if (XFS_IS_CORRUPT(mp, !xfs_ifork_has_extents(&ip->i_df)) || in xfs_buffered_write_iomap_begin()
907 eof = !xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap); in xfs_buffered_write_iomap_begin()
1214 if (xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) { in xfs_seek_iomap_begin()
A Dxfs_iops.c523 ASSERT(ip->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_vn_get_link_inline()
529 link = ip->i_df.if_u1.if_data; in xfs_vn_get_link_inline()
879 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size()
1411 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xfs_setup_iops()
A Dxfs_quotaops.c39 tstate->nextents = ip->i_df.if_nextents; in xfs_qm_fill_state()
A Dxfs_icache.c101 memset(&ip->i_df, 0, sizeof(ip->i_df)); in xfs_inode_alloc()
127 xfs_idestroy_fork(&ip->i_df); in xfs_inode_free_callback()
A Dxfs_inode.h38 struct xfs_ifork i_df; /* data fork */ member
A Dxfs_qm_syscalls.c89 ASSERT(ip->i_df.if_nextents == 0); in xfs_qm_scall_trunc_qfile()
A Dxfs_ioctl.c1196 if ((ip->i_df.if_nextents || ip->i_delayed_blks) && in xfs_ioctl_setattr_xflags()
1302 if (S_ISREG(VFS_I(ip)->i_mode) && ip->i_df.if_nextents && in xfs_ioctl_setattr_check_extsize()
A Dxfs_dquot.c755 if (xfs_iext_lookup_extent(quotip, &quotip->i_df, start, &cur, &got)) { in xfs_dq_get_next_id()
A Dxfs_file.c1232 if (ip->i_df.if_nextents > 0) in xfs_dir_open()
/linux/fs/xfs/scrub/
A Dparent.c92 if (parent->i_df.if_nextents > 0) in xchk_parent_count_parent_dentries()

Completed in 81 milliseconds

12