Searched refs:if_bytes (Results 1 – 16 of 16) sorted by relevance
| /Linux-v5.4/fs/xfs/libxfs/ |
| D | xfs_symlink_remote.c | 178 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() 215 size = ifp->if_bytes; in xfs_symlink_shortform_verify()
|
| D | xfs_inode_fork.c | 158 ifp->if_bytes = size; in xfs_init_local_fork() 226 ifp->if_bytes = 0; in xfs_iformat_extents() 316 ifp->if_bytes = 0; in xfs_iformat_btree() 474 int new_size = (int)ifp->if_bytes + byte_diff; in xfs_idata_realloc() 485 ifp->if_bytes = 0; in xfs_idata_realloc() 496 ifp->if_bytes = new_size; in xfs_idata_realloc() 558 ASSERT(ifp->if_bytes > 0); in xfs_iextents_copy() 571 ASSERT(copied <= ifp->if_bytes); in xfs_iextents_copy() 618 (ifp->if_bytes > 0)) { in xfs_iflush_fork() 620 ASSERT(ifp->if_bytes <= XFS_IFORK_SIZE(ip, whichfork)); in xfs_iflush_fork() [all …]
|
| D | xfs_dir2_sf.c | 242 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_block_to_sf() 287 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_addname() 644 size = ifp->if_bytes; in xfs_dir2_sf_verify() 751 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_sf_create() 803 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_lookup() 889 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename() 973 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_replace() 985 newsize = dp->i_df.if_bytes + (sfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_replace() 1098 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino4() 1171 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino8()
|
| D | xfs_iext_tree.c | 130 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 size_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()
|
| D | xfs_dir2_block.c | 1086 ASSERT(ifp->if_bytes == dp->i_d.di_size); in xfs_dir2_sf_to_block() 1095 sfp = kmem_alloc(ifp->if_bytes, 0); in xfs_dir2_sf_to_block() 1096 memcpy(sfp, oldsfp, ifp->if_bytes); in xfs_dir2_sf_to_block() 1098 xfs_idata_realloc(dp, -ifp->if_bytes, XFS_DATA_FORK); in xfs_dir2_sf_to_block()
|
| D | xfs_inode_fork.h | 16 int if_bytes; /* bytes in if_u1 */ member
|
| D | xfs_attr_leaf.c | 493 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit() 504 if (!dp->i_d.di_forkoff && dp->i_df.if_bytes > in xfs_attr_shortform_bytesfit() 577 ASSERT(ifp->if_bytes == 0); in xfs_attr_shortform_create() 932 size = ifp->if_bytes; in xfs_attr_shortform_verify()
|
| D | xfs_bmap.c | 803 ASSERT(ifp->if_bytes == 0); in xfs_bmap_local_to_extents_empty() 844 if (!ifp->if_bytes) { in xfs_bmap_local_to_extents() 891 xfs_idata_realloc(ip, -ifp->if_bytes, whichfork); in xfs_bmap_local_to_extents() 998 if (ip->i_df.if_bytes <= XFS_IFORK_DSIZE(ip)) in xfs_bmap_add_attrfork_local()
|
| /Linux-v5.4/fs/xfs/ |
| D | xfs_inode_item.c | 42 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 …]
|
| D | xfs_symlink.c | 466 if (ip->i_df.if_bytes) in xfs_inactive_symlink_rmt() 467 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt() 468 ASSERT(ip->i_df.if_bytes == 0); in xfs_inactive_symlink_rmt()
|
| D | xfs_attr_list.c | 85 (dp->i_afp->if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list() 122 ((char *)sfe >= ((char *)sf + dp->i_afp->if_bytes)))) { in xfs_attr_shortform_list()
|
| D | xfs_inode.c | 924 ip->i_df.if_bytes = 0; in xfs_ialloc() 1478 if (dfork->if_bytes == 0 && cfork->if_bytes == 0) in xfs_itruncate_clear_reflink_flags() 1480 if (cfork->if_bytes == 0) in xfs_itruncate_clear_reflink_flags() 2721 xfs_idata_realloc(ip, -ifp->if_bytes, whichfork); in xfs_ifree_local_data() 3752 ifp->if_u1.if_data, ifp->if_bytes, fa); in xfs_inode_verify_forks() 3761 ifp ? ifp->if_bytes : 0, fa); in xfs_inode_verify_forks()
|
| D | xfs_inode.h | 219 return ip->i_cowfp && ip->i_cowfp->if_bytes; in xfs_inode_has_cow_data()
|
| D | xfs_dir2_readdir.c | 59 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_getdents()
|
| D | xfs_reflink.c | 528 if (!ifp->if_bytes) in xfs_reflink_cancel_cow_blocks() 614 if (ifp->if_bytes == 0) { in xfs_reflink_end_cow_extent()
|
| D | xfs_bmap_util.c | 1880 if (ip->i_cowfp && ip->i_cowfp->if_bytes) in xfs_swap_extents() 1884 if (tip->i_cowfp && tip->i_cowfp->if_bytes) in xfs_swap_extents()
|