Home
last modified time | relevance | path

Searched refs:if_bytes (Results 1 – 16 of 16) sorted by relevance

/linux-4.19.296/fs/xfs/libxfs/
Dxfs_symlink_remote.c181 memcpy(bp->b_addr, ifp->if_u1.if_data, ifp->if_bytes); in xfs_symlink_local_to_remote()
182 xfs_trans_log_buf(tp, bp, 0, ifp->if_bytes - 1); in xfs_symlink_local_to_remote()
191 ifp->if_bytes + sizeof(struct xfs_dsymlink_hdr)); in xfs_symlink_local_to_remote()
196 buf += xfs_symlink_hdr_set(mp, ip->i_ino, 0, ifp->if_bytes, bp); in xfs_symlink_local_to_remote()
197 memcpy(buf, ifp->if_u1.if_data, ifp->if_bytes); in xfs_symlink_local_to_remote()
199 ifp->if_bytes - 1); in xfs_symlink_local_to_remote()
218 size = ifp->if_bytes; in xfs_symlink_shortform_verify()
Dxfs_inode_fork.c160 ifp->if_bytes = size; in xfs_init_local_fork()
228 ifp->if_bytes = 0; in xfs_iformat_extents()
318 ifp->if_bytes = 0; in xfs_iformat_btree()
476 int new_size = (int)ifp->if_bytes + byte_diff; in xfs_idata_realloc()
487 ifp->if_bytes = 0; in xfs_idata_realloc()
498 ifp->if_bytes = new_size; in xfs_idata_realloc()
560 ASSERT(ifp->if_bytes > 0); in xfs_iextents_copy()
573 ASSERT(copied <= ifp->if_bytes); in xfs_iextents_copy()
620 (ifp->if_bytes > 0)) { in xfs_iflush_fork()
622 ASSERT(ifp->if_bytes <= XFS_IFORK_SIZE(ip, whichfork)); in xfs_iflush_fork()
[all …]
Dxfs_dir2_sf.c245 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_block_to_sf()
290 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_addname()
647 size = ifp->if_bytes; in xfs_dir2_sf_verify()
754 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_sf_create()
806 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_lookup()
892 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename()
976 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_replace()
988 newsize = dp->i_df.if_bytes + (sfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_replace()
1101 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino4()
1174 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino8()
Dxfs_iext_tree.c134 return ifp->if_bytes / sizeof(struct xfs_iext_rec); in xfs_iext_count()
588 ASSERT(ifp->if_bytes == 0); in xfs_iext_alloc_root()
603 size_t new_size = ifp->if_bytes + sizeof(struct xfs_iext_rec); in xfs_iext_realloc_root()
611 memset(new + ifp->if_bytes, 0, new_size - ifp->if_bytes); in xfs_iext_realloc_root()
668 ifp->if_bytes += sizeof(struct xfs_iext_rec); in xfs_iext_insert()
889 ifp->if_bytes -= sizeof(struct xfs_iext_rec); in xfs_iext_remove()
1052 ifp->if_bytes = 0; in xfs_iext_destroy()
Dxfs_inode_fork.h16 int if_bytes; /* bytes in if_u1 */ member
Dxfs_dir2_block.c1089 ASSERT(ifp->if_bytes == dp->i_d.di_size); in xfs_dir2_sf_to_block()
1098 sfp = kmem_alloc(ifp->if_bytes, KM_SLEEP); in xfs_dir2_sf_to_block()
1099 memcpy(sfp, oldsfp, ifp->if_bytes); in xfs_dir2_sf_to_block()
1101 xfs_idata_realloc(dp, -ifp->if_bytes, XFS_DATA_FORK); in xfs_dir2_sf_to_block()
Dxfs_attr_leaf.c461 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit()
472 if (!dp->i_d.di_forkoff && dp->i_df.if_bytes > in xfs_attr_shortform_bytesfit()
545 ASSERT(ifp->if_bytes == 0); in xfs_attr_shortform_create()
921 size = ifp->if_bytes; in xfs_attr_shortform_verify()
Dxfs_bmap.c805 ASSERT(ifp->if_bytes == 0); in xfs_bmap_local_to_extents_empty()
845 if (!ifp->if_bytes) { in xfs_bmap_local_to_extents()
892 xfs_idata_realloc(ip, -ifp->if_bytes, whichfork); in xfs_bmap_local_to_extents()
999 if (ip->i_df.if_bytes <= XFS_IFORK_DSIZE(ip)) in xfs_bmap_add_attrfork_local()
/linux-4.19.296/fs/xfs/
Dxfs_inode_item.c42 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
57 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
58 *nbytes += roundup(ip->i_df.if_bytes, 4); in xfs_inode_item_data_fork_size()
83 ip->i_afp->if_bytes > 0) { in xfs_inode_item_attr_fork_size()
98 ip->i_afp->if_bytes > 0) { in xfs_inode_item_attr_fork_size()
99 *nbytes += roundup(ip->i_afp->if_bytes, 4); in xfs_inode_item_attr_fork_size()
151 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork()
160 ASSERT(data_bytes <= ip->i_df.if_bytes); in xfs_inode_item_format_data_fork()
190 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork()
196 data_bytes = roundup(ip->i_df.if_bytes, 4); in xfs_inode_item_format_data_fork()
[all …]
Dxfs_symlink.c475 if (ip->i_df.if_bytes) in xfs_inactive_symlink_rmt()
476 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt()
477 ASSERT(ip->i_df.if_bytes == 0); in xfs_inactive_symlink_rmt()
Dxfs_attr_list.c90 (dp->i_afp->if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list()
127 ((char *)sfe >= ((char *)sf + dp->i_afp->if_bytes)))) { in xfs_attr_shortform_list()
Dxfs_inode.c930 ip->i_df.if_bytes = 0; in xfs_ialloc()
1489 if (dfork->if_bytes == 0 && cfork->if_bytes == 0) in xfs_itruncate_clear_reflink_flags()
1491 if (cfork->if_bytes == 0) in xfs_itruncate_clear_reflink_flags()
2403 xfs_idata_realloc(ip, -ifp->if_bytes, whichfork); in xfs_ifree_local_data()
3438 ifp->if_u1.if_data, ifp->if_bytes, fa); in xfs_inode_verify_forks()
3447 ifp ? ifp->if_bytes : 0, fa); in xfs_inode_verify_forks()
Dxfs_inode.h206 return ip->i_cowfp && ip->i_cowfp->if_bytes; in xfs_inode_has_cow_data()
Dxfs_dir2_readdir.c62 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_getdents()
Dxfs_reflink.c568 if (!ifp->if_bytes) in xfs_reflink_cancel_cow_blocks()
650 if (ifp->if_bytes == 0) in xfs_reflink_end_cow()
Dxfs_bmap_util.c1943 if (ip->i_cowfp && ip->i_cowfp->if_bytes) in xfs_swap_extents()
1947 if (tip->i_cowfp && tip->i_cowfp->if_bytes) in xfs_swap_extents()