Home
last modified time | relevance | path

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

/linux/fs/xfs/libxfs/
A Dxfs_symlink_remote.c178 memcpy(bp->b_addr, ifp->if_u1.if_data, ifp->if_bytes); in xfs_symlink_local_to_remote()
179 xfs_trans_log_buf(tp, bp, 0, ifp->if_bytes - 1); in xfs_symlink_local_to_remote()
188 ifp->if_bytes + sizeof(struct xfs_dsymlink_hdr)); in xfs_symlink_local_to_remote()
193 buf += xfs_symlink_hdr_set(mp, ip->i_ino, 0, ifp->if_bytes, bp); in xfs_symlink_local_to_remote()
194 memcpy(buf, ifp->if_u1.if_data, ifp->if_bytes); in xfs_symlink_local_to_remote()
196 ifp->if_bytes - 1); in xfs_symlink_local_to_remote()
209 int size = ifp->if_bytes; in xfs_symlink_shortform_verify()
A Dxfs_inode_fork.c62 ifp->if_bytes = size; in xfs_init_local_fork()
128 ifp->if_bytes = 0; in xfs_iformat_extents()
214 ifp->if_bytes = 0; in xfs_iformat_btree()
485 int64_t new_size = ifp->if_bytes + byte_diff; in xfs_idata_realloc()
496 ifp->if_bytes = 0; in xfs_idata_realloc()
507 ifp->if_bytes = new_size; in xfs_idata_realloc()
554 ASSERT(ifp->if_bytes > 0); in xfs_iextents_copy()
567 ASSERT(copied <= ifp->if_bytes); in xfs_iextents_copy()
614 (ifp->if_bytes > 0)) { in xfs_iflush_fork()
623 (ifp->if_bytes > 0)) { in xfs_iflush_fork()
[all …]
A Dxfs_dir2_sf.c344 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_block_to_sf()
383 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_addname()
729 size = ifp->if_bytes; in xfs_dir2_sf_verify()
834 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_sf_create()
880 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_lookup()
958 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename()
1031 newsize = dp->i_df.if_bytes + (sfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_replace_needblock()
1056 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_replace()
1178 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino4()
1251 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino8()
A Dxfs_iext_tree.c130 return ifp->if_bytes / sizeof(struct xfs_iext_rec); in xfs_iext_count()
584 ASSERT(ifp->if_bytes == 0); in xfs_iext_alloc_root()
599 int64_t new_size = ifp->if_bytes + sizeof(struct xfs_iext_rec); in xfs_iext_realloc_root()
607 memset(new + ifp->if_bytes, 0, new_size - ifp->if_bytes); in xfs_iext_realloc_root()
663 ifp->if_bytes += sizeof(struct xfs_iext_rec); in xfs_iext_insert()
884 ifp->if_bytes -= sizeof(struct xfs_iext_rec); in xfs_iext_remove()
1047 ifp->if_bytes = 0; in xfs_iext_destroy()
A Dxfs_dir2_block.c1104 ASSERT(ifp->if_bytes == dp->i_disk_size); in xfs_dir2_sf_to_block()
1113 sfp = kmem_alloc(ifp->if_bytes, 0); in xfs_dir2_sf_to_block()
1114 memcpy(sfp, oldsfp, ifp->if_bytes); in xfs_dir2_sf_to_block()
1116 xfs_idata_realloc(dp, -ifp->if_bytes, XFS_DATA_FORK); in xfs_dir2_sf_to_block()
A Dxfs_inode_fork.h16 int64_t if_bytes; /* bytes in if_u1 */ member
A Dxfs_attr_leaf.c574 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit()
585 if (!dp->i_forkoff && dp->i_df.if_bytes > in xfs_attr_shortform_bytesfit()
660 ASSERT(ifp->if_bytes == 0); in xfs_attr_shortform_create()
1028 size = ifp->if_bytes; in xfs_attr_shortform_verify()
A Dxfs_bmap.c754 ASSERT(ifp->if_bytes == 0); in xfs_bmap_local_to_extents_empty()
793 if (!ifp->if_bytes) { in xfs_bmap_local_to_extents()
843 xfs_idata_realloc(ip, -ifp->if_bytes, whichfork); in xfs_bmap_local_to_extents()
956 if (ip->i_df.if_bytes <= XFS_IFORK_DSIZE(ip)) in xfs_bmap_add_attrfork_local()
/linux/fs/xfs/
A Dxfs_inode_item.c57 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
72 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
73 *nbytes += roundup(ip->i_df.if_bytes, 4); in xfs_inode_item_data_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()
114 *nbytes += roundup(ip->i_afp->if_bytes, 4); in xfs_inode_item_attr_fork_size()
166 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork()
175 ASSERT(data_bytes <= ip->i_df.if_bytes); in xfs_inode_item_format_data_fork()
205 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork()
251 ip->i_afp->if_bytes > 0) { in xfs_inode_item_format_attr_fork()
[all …]
A Dxfs_symlink.c454 if (ip->i_df.if_bytes) in xfs_inactive_symlink_rmt()
455 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt()
456 ASSERT(ip->i_df.if_bytes == 0); in xfs_inactive_symlink_rmt()
A Dxfs_attr_list.c82 (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()
A Dxfs_inode.c888 ip->i_df.if_bytes = 0; in xfs_init_new_inode()
1324 if (dfork->if_bytes == 0 && cfork->if_bytes == 0) in xfs_itruncate_clear_reflink_flags()
1326 if (cfork->if_bytes == 0) in xfs_itruncate_clear_reflink_flags()
1694 if (cow_ifp && cow_ifp->if_bytes > 0) in xfs_inode_needs_inactive()
2649 ip->i_df.if_bytes = 0; in xfs_ifree()
A Dxfs_inode.h213 return ip->i_cowfp && ip->i_cowfp->if_bytes; in xfs_inode_has_cow_data()
A Dxfs_reflink.c513 if (!ifp->if_bytes) in xfs_reflink_cancel_cow_blocks()
599 if (ifp->if_bytes == 0) { in xfs_reflink_end_cow_extent()
A Dxfs_dir2_readdir.c61 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_getdents()
A Dxfs_bmap_util.c1789 if (ip->i_cowfp && ip->i_cowfp->if_bytes) in xfs_swap_extents()
1793 if (tip->i_cowfp && tip->i_cowfp->if_bytes) in xfs_swap_extents()

Completed in 53 milliseconds