Searched refs:i_af (Results 1 – 15 of 15) sorted by relevance
242 switch (ip->i_af.if_format) { in xfs_inode_item_attr_fork_size()245 ip->i_af.if_nextents > 0 && in xfs_inode_item_attr_fork_size()246 ip->i_af.if_bytes > 0) { in xfs_inode_item_attr_fork_size()254 ip->i_af.if_broot_bytes > 0) { in xfs_inode_item_attr_fork_size()255 *nbytes += ip->i_af.if_broot_bytes; in xfs_inode_item_attr_fork_size()261 ip->i_af.if_bytes > 0) { in xfs_inode_item_attr_fork_size()262 *nbytes += xlog_calc_iovec_len(ip->i_af.if_bytes); in xfs_inode_item_attr_fork_size()387 switch (ip->i_af.if_format) { in xfs_inode_item_format_attr_fork()393 ip->i_af.if_nextents > 0 && in xfs_inode_item_format_attr_fork()394 ip->i_af.if_bytes > 0) { in xfs_inode_item_format_attr_fork()[all …]
64 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()
38 struct xfs_ifork i_af; /* attribute fork */ member118 return &ip->i_af; in xfs_ifork_ptr()
1514 if (xfs_inode_has_attr_fork(ip) && ip->i_af.if_nextents > 0 && in xfs_swap_extent_forks()1515 ip->i_af.if_format != XFS_DINODE_FMT_LOCAL) { in xfs_swap_extent_forks()1521 if (xfs_inode_has_attr_fork(tip) && tip->i_af.if_nextents > 0 && in xfs_swap_extent_forks()1522 tip->i_af.if_format != XFS_DINODE_FMT_LOCAL) { in xfs_swap_extent_forks()
366 if (dp->i_af.if_nextents > 0) { in xfs_attr_inactive()
59 return READ_ONCE(ip->i_af.if_seq); in xfs_iomap_inode_sequence()1386 if (!xfs_inode_has_attr_fork(ip) || !ip->i_af.if_nextents) { in xfs_xattr_iomap_begin()1391 ASSERT(ip->i_af.if_format != XFS_DINODE_FMT_LOCAL); in xfs_xattr_iomap_begin()
102 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()
129 buf->bs_aextents = xfs_ifork_nextents(&ip->i_af); in xfs_bulkstat_one_int()
129 if (xfs_inode_has_attr_fork(ip) && xfs_need_iread_extents(&ip->i_af)) in xfs_ilock_attr_map_shared()3247 if (XFS_TEST_ERROR(ip->i_df.if_nextents + xfs_ifork_nextents(&ip->i_af) > in xfs_iflush()3253 ip->i_df.if_nextents + xfs_ifork_nextents(&ip->i_af), in xfs_iflush()3284 ip->i_af.if_format == XFS_DINODE_FMT_LOCAL && in xfs_iflush()
298 ip->i_af.if_format = format; in xfs_ifork_init_attr()299 ip->i_af.if_nextents = nextents; in xfs_ifork_init_attr()300 smp_store_release(&ip->i_af.if_needextents, in xfs_ifork_init_attr()301 ip->i_af.if_format == XFS_DINODE_FMT_BTREE ? 1 : 0); in xfs_ifork_init_attr()308 xfs_idestroy_fork(&ip->i_af); in xfs_ifork_zap_attr()309 memset(&ip->i_af, 0, sizeof(struct xfs_ifork)); in xfs_ifork_zap_attr()310 ip->i_af.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_ifork_zap_attr()327 switch (ip->i_af.if_format) { in xfs_iformat_attr_fork()678 return &ip->i_af; in xfs_iext_state_to_fork()729 struct xfs_ifork *ifp = &ip->i_af; in xfs_ifork_verify_local_attr()
563 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()
72 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()
289 to->di_big_anextents = cpu_to_be32(xfs_ifork_nextents(&ip->i_af)); in xfs_inode_to_disk_iext_counters()297 to->di_anextents = cpu_to_be16(xfs_ifork_nextents(&ip->i_af)); in xfs_inode_to_disk_iext_counters()329 to->di_aformat = xfs_ifork_format(&ip->i_af); in xfs_inode_to_disk()
685 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()
541 sf = (struct xfs_attr_shortform *)sc->ip->i_af.if_u1.if_data; in xchk_xattr_check_sf()620 if (sc->ip->i_af.if_format == XFS_DINODE_FMT_LOCAL) in xchk_xattr()