Home
last modified time | relevance | path

Searched refs:i_afp (Results 1 – 15 of 15) sorted by relevance

/linux/fs/xfs/
A Dxfs_inode_item.c94 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 …]
A Dxfs_attr_inactive.c370 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()
A Dxfs_attr_list.c63 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()
A Dxfs_inode.c127 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()
A Dxfs_bmap_util.c1497 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()
A Dxfs_icache.c99 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()
A Dxfs_inode.h36 struct xfs_ifork *i_afp; /* attribute fork pointer */ member
A Dxfs_itable.c107 buf->bs_aextents = xfs_ifork_nextents(ip->i_afp); in xfs_bulkstat_one_int()
A Dxfs_iomap.c1294 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()
/linux/fs/xfs/libxfs/
A Dxfs_attr.c74 (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 …]
A Dxfs_inode_fork.c304 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()
A Dxfs_attr_leaf.c655 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 …]
A Dxfs_inode_buf.c181 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()
A Dxfs_inode_fork.h101 (ip)->i_afp : \
A Dxfs_bmap.c1046 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