Home
last modified time | relevance | path

Searched refs:i_af (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/fs/xfs/
Dxfs_inode_item.c95 switch (ip->i_af.if_format) { in xfs_inode_item_attr_fork_size()
98 ip->i_af.if_nextents > 0 && in xfs_inode_item_attr_fork_size()
99 ip->i_af.if_bytes > 0) { in xfs_inode_item_attr_fork_size()
107 ip->i_af.if_broot_bytes > 0) { in xfs_inode_item_attr_fork_size()
108 *nbytes += ip->i_af.if_broot_bytes; in xfs_inode_item_attr_fork_size()
114 ip->i_af.if_bytes > 0) { in xfs_inode_item_attr_fork_size()
115 *nbytes += xlog_calc_iovec_len(ip->i_af.if_bytes); in xfs_inode_item_attr_fork_size()
240 switch (ip->i_af.if_format) { in xfs_inode_item_format_attr_fork()
246 ip->i_af.if_nextents > 0 && in xfs_inode_item_format_attr_fork()
247 ip->i_af.if_bytes > 0) { in xfs_inode_item_format_attr_fork()
[all …]
Dxfs_attr_list.c64 sf = (struct xfs_attr_shortform *)dp->i_af.if_u1.if_data; in xfs_attr_shortform_list()
82 (dp->i_af.if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list()
123 ((char *)sfe >= ((char *)sf + dp->i_af.if_bytes)))) { in xfs_attr_shortform_list()
515 if (dp->i_af.if_format == XFS_DINODE_FMT_LOCAL) in xfs_attr_list_ilocked()
Dxfs_inode.h38 struct xfs_ifork i_af; /* attribute fork */ member
100 return &ip->i_af; in xfs_ifork_ptr()
Dxfs_attr_inactive.c367 if (dp->i_af.if_nextents > 0) { in xfs_attr_inactive()
Dxfs_bmap_util.c1510 if (xfs_inode_has_attr_fork(ip) && ip->i_af.if_nextents > 0 && in xfs_swap_extent_forks()
1511 ip->i_af.if_format != XFS_DINODE_FMT_LOCAL) { in xfs_swap_extent_forks()
1517 if (xfs_inode_has_attr_fork(tip) && tip->i_af.if_nextents > 0 && in xfs_swap_extent_forks()
1518 tip->i_af.if_format != XFS_DINODE_FMT_LOCAL) { in xfs_swap_extent_forks()
Dxfs_icache.c102 memset(&ip->i_af, 0, sizeof(ip->i_af)); in xfs_inode_alloc()
103 ip->i_af.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_inode_alloc()
Dxfs_itable.c118 buf->bs_aextents = xfs_ifork_nextents(&ip->i_af); in xfs_bulkstat_one_int()
Dxfs_inode.c129 if (xfs_inode_has_attr_fork(ip) && xfs_need_iread_extents(&ip->i_af)) in xfs_ilock_attr_map_shared()
3147 if (XFS_TEST_ERROR(ip->i_df.if_nextents + xfs_ifork_nextents(&ip->i_af) > in xfs_iflush()
3153 ip->i_df.if_nextents + xfs_ifork_nextents(&ip->i_af), in xfs_iflush()
3184 ip->i_af.if_format == XFS_DINODE_FMT_LOCAL && in xfs_iflush()
Dxfs_iomap.c1341 if (!xfs_inode_has_attr_fork(ip) || !ip->i_af.if_nextents) { in xfs_xattr_iomap_begin()
1346 ASSERT(ip->i_af.if_format != XFS_DINODE_FMT_LOCAL); in xfs_xattr_iomap_begin()
/linux-6.1.9/fs/xfs/libxfs/
Dxfs_attr.h563 return ip->i_af.if_format == XFS_DINODE_FMT_LOCAL || in xfs_attr_is_shortform()
564 (ip->i_af.if_format == XFS_DINODE_FMT_EXTENTS && in xfs_attr_is_shortform()
565 ip->i_af.if_nextents == 0); in xfs_attr_is_shortform()
Dxfs_inode_fork.c285 ip->i_af.if_format = format; in xfs_ifork_init_attr()
286 ip->i_af.if_nextents = nextents; in xfs_ifork_init_attr()
293 xfs_idestroy_fork(&ip->i_af); in xfs_ifork_zap_attr()
294 memset(&ip->i_af, 0, sizeof(struct xfs_ifork)); in xfs_ifork_zap_attr()
295 ip->i_af.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_ifork_zap_attr()
312 switch (ip->i_af.if_format) { in xfs_iformat_attr_fork()
663 return &ip->i_af; in xfs_iext_state_to_fork()
714 struct xfs_ifork *ifp = &ip->i_af; in xfs_ifork_verify_local_attr()
Dxfs_attr.c72 if (ip->i_af.if_format == XFS_DINODE_FMT_EXTENTS && in xfs_inode_hasattr()
73 ip->i_af.if_nextents == 0) in xfs_inode_hasattr()
86 struct xfs_ifork *ifp = &ip->i_af; in xfs_attr_is_leaf()
232 if (args->dp->i_af.if_format == XFS_DINODE_FMT_LOCAL) in xfs_attr_get_ilocked()
355 if (dp->i_af.if_format == XFS_DINODE_FMT_EXTENTS) in xfs_attr_try_sf_addname()
865 if (dp->i_af.if_format == XFS_DINODE_FMT_LOCAL) in xfs_attr_lookup()
1102 sf = (struct xfs_attr_shortform *)dp->i_af.if_u1.if_data; in xfs_attr_sf_totsize()
Dxfs_inode_buf.c288 to->di_big_anextents = cpu_to_be32(xfs_ifork_nextents(&ip->i_af)); in xfs_inode_to_disk_iext_counters()
296 to->di_anextents = cpu_to_be16(xfs_ifork_nextents(&ip->i_af)); in xfs_inode_to_disk_iext_counters()
328 to->di_aformat = xfs_ifork_format(&ip->i_af); in xfs_inode_to_disk()
Dxfs_attr_leaf.c685 struct xfs_ifork *ifp = &dp->i_af; in xfs_attr_shortform_create()
722 sf = (struct xfs_attr_shortform *)args->dp->i_af.if_u1.if_data; in xfs_attr_sf_findname()
767 ifp = &dp->i_af; in xfs_attr_shortform_add()
800 ASSERT(ip->i_af.if_nextents == 0); in xfs_attr_fork_remove()
826 sf = (struct xfs_attr_shortform *)dp->i_af.if_u1.if_data; in xfs_attr_sf_removename()
890 ifp = &args->dp->i_af; in xfs_attr_shortform_lookup()
918 ASSERT(args->dp->i_af.if_format == XFS_DINODE_FMT_LOCAL); in xfs_attr_shortform_getvalue()
919 sf = (struct xfs_attr_shortform *)args->dp->i_af.if_u1.if_data; in xfs_attr_shortform_getvalue()
949 ifp = &dp->i_af; in xfs_attr_shortform_to_leaf()
1056 ASSERT(ip->i_af.if_format == XFS_DINODE_FMT_LOCAL); in xfs_attr_shortform_verify()