Searched refs:i_afp (Results 1 – 15 of 15) sorted by relevance
94 switch (ip->i_afp->if_format) { in xfs_inode_item_attr_fork_size()97 ip->i_afp->if_nextents > 0 && in xfs_inode_item_attr_fork_size()98 ip->i_afp->if_bytes > 0) { in xfs_inode_item_attr_fork_size()113 ip->i_afp->if_bytes > 0) { in xfs_inode_item_attr_fork_size()244 switch (ip->i_afp->if_format) { in xfs_inode_item_format_attr_fork()251 ip->i_afp->if_bytes > 0) { in xfs_inode_item_format_attr_fork()255 ip->i_afp->if_nextents); in xfs_inode_item_format_attr_fork()276 ip->i_afp->if_broot, in xfs_inode_item_format_attr_fork()277 ip->i_afp->if_broot_bytes); in xfs_inode_item_format_attr_fork()289 ip->i_afp->if_bytes > 0) { in xfs_inode_item_format_attr_fork()[all …]
370 dp->i_afp->if_format != XFS_DINODE_FMT_LOCAL) { in xfs_attr_inactive()391 if (dp->i_afp) { in xfs_attr_inactive()392 xfs_idestroy_fork(dp->i_afp); in xfs_attr_inactive()393 kmem_cache_free(xfs_ifork_cache, dp->i_afp); in xfs_attr_inactive()394 dp->i_afp = NULL; in xfs_attr_inactive()
63 ASSERT(dp->i_afp != NULL); in xfs_attr_shortform_list()64 sf = (struct xfs_attr_shortform *)dp->i_afp->if_u1.if_data; in xfs_attr_shortform_list()82 (dp->i_afp->if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list()123 ((char *)sfe >= ((char *)sf + dp->i_afp->if_bytes)))) { in xfs_attr_shortform_list()515 if (dp->i_afp->if_format == XFS_DINODE_FMT_LOCAL) in xfs_attr_list_ilocked()
127 if (ip->i_afp && xfs_need_iread_extents(ip->i_afp)) in xfs_ilock_attr_map_shared()906 ip->i_afp = xfs_ifork_alloc(XFS_DINODE_FMT_EXTENTS, 0); in xfs_init_new_inode()1797 ASSERT(!ip->i_afp); in xfs_inactive()3495 if (XFS_TEST_ERROR(ip->i_df.if_nextents + xfs_ifork_nextents(ip->i_afp) > in xfs_iflush()3501 ip->i_df.if_nextents + xfs_ifork_nextents(ip->i_afp), in xfs_iflush()3531 if (ip->i_afp && ip->i_afp->if_format == XFS_DINODE_FMT_LOCAL && in xfs_iflush()
1497 if (XFS_IFORK_Q(ip) && ip->i_afp->if_nextents > 0 && in xfs_swap_extent_forks()1498 ip->i_afp->if_format != XFS_DINODE_FMT_LOCAL) { in xfs_swap_extent_forks()1504 if (XFS_IFORK_Q(tip) && tip->i_afp->if_nextents > 0 && in xfs_swap_extent_forks()1505 tip->i_afp->if_format != XFS_DINODE_FMT_LOCAL) { in xfs_swap_extent_forks()
99 ip->i_afp = NULL; in xfs_inode_alloc()131 if (ip->i_afp) { in xfs_inode_free_callback()132 xfs_idestroy_fork(ip->i_afp); in xfs_inode_free_callback()133 kmem_cache_free(xfs_ifork_cache, ip->i_afp); in xfs_inode_free_callback()
36 struct xfs_ifork *i_afp; /* attribute fork pointer */ member
107 buf->bs_aextents = xfs_ifork_nextents(ip->i_afp); in xfs_bulkstat_one_int()
1294 if (!XFS_IFORK_Q(ip) || !ip->i_afp->if_nextents) { in xfs_xattr_iomap_begin()1299 ASSERT(ip->i_afp->if_format != XFS_DINODE_FMT_LOCAL); in xfs_xattr_iomap_begin()
74 (ip->i_afp->if_format == XFS_DINODE_FMT_EXTENTS && in xfs_inode_hasattr()75 ip->i_afp->if_nextents == 0)) in xfs_inode_hasattr()88 struct xfs_ifork *ifp = ip->i_afp; in xfs_attr_is_leaf()117 if (args->dp->i_afp->if_format == XFS_DINODE_FMT_LOCAL) in xfs_attr_get_ilocked()213 if (dp->i_afp->if_format == XFS_DINODE_FMT_EXTENTS) in xfs_attr_try_sf_addname()241 return ip->i_afp->if_format == XFS_DINODE_FMT_LOCAL || in xfs_attr_is_shortform()242 (ip->i_afp->if_format == XFS_DINODE_FMT_EXTENTS && in xfs_attr_is_shortform()243 ip->i_afp->if_nextents == 0); in xfs_attr_is_shortform()656 if (dp->i_afp->if_format == XFS_DINODE_FMT_LOCAL) in xfs_attr_lookup()840 sf = (struct xfs_attr_shortform *)dp->i_afp->if_u1.if_data; in xfs_attr_sf_totsize()[all …]
304 ip->i_afp = xfs_ifork_alloc(dip->di_aformat, in xfs_iformat_attr_fork()307 switch (ip->i_afp->if_format) { in xfs_iformat_attr_fork()328 kmem_cache_free(xfs_ifork_cache, ip->i_afp); in xfs_iformat_attr_fork()329 ip->i_afp = NULL; in xfs_iformat_attr_fork()665 return ip->i_afp; in xfs_iext_state_to_fork()716 struct xfs_ifork *ifp = ip->i_afp; in xfs_ifork_verify_local_attr()
655 struct xfs_ifork *ifp = dp->i_afp; in xfs_attr_shortform_create()737 ifp = dp->i_afp; in xfs_attr_shortform_add()770 ASSERT(ip->i_afp->if_nextents == 0); in xfs_attr_fork_remove()772 xfs_idestroy_fork(ip->i_afp); in xfs_attr_fork_remove()773 kmem_cache_free(xfs_ifork_cache, ip->i_afp); in xfs_attr_fork_remove()774 ip->i_afp = NULL; in xfs_attr_fork_remove()798 sf = (struct xfs_attr_shortform *)dp->i_afp->if_u1.if_data; in xfs_attr_sf_removename()854 ifp = args->dp->i_afp; in xfs_attr_shortform_lookup()882 ASSERT(args->dp->i_afp->if_format == XFS_DINODE_FMT_LOCAL); in xfs_attr_shortform_getvalue()917 ifp = dp->i_afp; in xfs_attr_shortform_to_leaf()[all …]
181 ASSERT(ip->i_afp == NULL); in xfs_inode_from_disk()311 to->di_anextents = cpu_to_be16(xfs_ifork_nextents(ip->i_afp)); in xfs_inode_to_disk()313 to->di_aformat = xfs_ifork_format(ip->i_afp); in xfs_inode_to_disk()
101 (ip)->i_afp : \
1046 ASSERT(ip->i_afp == NULL); in xfs_bmap_add_attrfork()1048 ip->i_afp = xfs_ifork_alloc(XFS_DINODE_FMT_EXTENTS, 0); in xfs_bmap_add_attrfork()
Completed in 40 milliseconds