Home
last modified time | relevance | path

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

/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_symlink_remote.c180 memcpy(bp->b_addr, ifp->if_u1.if_data, ifp->if_bytes); in xfs_symlink_local_to_remote()
181 xfs_trans_log_buf(tp, bp, 0, ifp->if_bytes - 1); in xfs_symlink_local_to_remote()
190 ifp->if_bytes + sizeof(struct xfs_dsymlink_hdr)); in xfs_symlink_local_to_remote()
195 buf += xfs_symlink_hdr_set(mp, ip->i_ino, 0, ifp->if_bytes, bp); in xfs_symlink_local_to_remote()
196 memcpy(buf, ifp->if_u1.if_data, ifp->if_bytes); in xfs_symlink_local_to_remote()
198 ifp->if_bytes - 1); in xfs_symlink_local_to_remote()
211 int size = ifp->if_bytes; in xfs_symlink_shortform_verify()
H A Dxfs_inode_fork.c61 ifp->if_bytes = size; in xfs_init_local_fork()
127 ifp->if_bytes = 0; in xfs_iformat_extents()
214 ifp->if_bytes = 0; in xfs_iformat_btree()
503 int64_t new_size = ifp->if_bytes + byte_diff; in xfs_idata_realloc()
514 ifp->if_bytes = 0; in xfs_idata_realloc()
520 ifp->if_bytes = new_size; in xfs_idata_realloc()
567 ASSERT(ifp->if_bytes > 0); in xfs_iextents_copy()
580 ASSERT(copied <= ifp->if_bytes); in xfs_iextents_copy()
627 (ifp->if_bytes > 0)) { in xfs_iflush_fork()
629 ASSERT(ifp->if_bytes <= xfs_inode_fork_size(ip, whichfork)); in xfs_iflush_fork()
[all …]
H 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()
879 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_lookup()
956 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename()
1029 newsize = dp->i_df.if_bytes + (sfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_replace_needblock()
1054 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_replace()
1176 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino4()
1249 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino8()
H 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()
H 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()
H A Dxfs_inode_fork.h16 int64_t if_bytes; /* bytes in if_u1 */ member
H A Dxfs_attr_leaf.c604 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit()
615 if (!dp->i_forkoff && dp->i_df.if_bytes > in xfs_attr_shortform_bytesfit()
690 ASSERT(ifp->if_bytes == 0); in xfs_attr_shortform_create()
1061 size = ifp->if_bytes; in xfs_attr_shortform_verify()
H A Dxfs_bmap.c746 ASSERT(ifp->if_bytes == 0); in xfs_bmap_local_to_extents_empty()
785 if (!ifp->if_bytes) { in xfs_bmap_local_to_extents()
831 xfs_idata_realloc(ip, -ifp->if_bytes, whichfork); in xfs_bmap_local_to_extents()
943 if (ip->i_df.if_bytes <= xfs_inode_data_fork_size(ip)) in xfs_bmap_add_attrfork_local()
/openbmc/linux/fs/xfs/
H A Dxfs_inode_item.c237 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
252 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
253 *nbytes += xlog_calc_iovec_len(ip->i_df.if_bytes); in xfs_inode_item_data_fork_size()
278 ip->i_af.if_bytes > 0) { in xfs_inode_item_attr_fork_size()
293 ip->i_af.if_bytes > 0) { in xfs_inode_item_attr_fork_size()
294 *nbytes += xlog_calc_iovec_len(ip->i_af.if_bytes); in xfs_inode_item_attr_fork_size()
346 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork()
355 ASSERT(data_bytes <= ip->i_df.if_bytes); in xfs_inode_item_format_data_fork()
385 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork()
390 ip->i_df.if_bytes); in xfs_inode_item_format_data_fork()
[all …]
H A Dxfs_symlink.c460 if (ip->i_df.if_bytes) in xfs_inactive_symlink_rmt()
461 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt()
462 ASSERT(ip->i_df.if_bytes == 0); in xfs_inactive_symlink_rmt()
H A Dxfs_attr_list.c82 (dp->i_af.if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list()
124 ((char *)sfe >= ((char *)sf + dp->i_af.if_bytes)) || in xfs_attr_shortform_list()
H A Dxfs_inode.c877 ip->i_df.if_bytes = 0; in xfs_init_new_inode()
1319 if (dfork->if_bytes == 0 && cfork->if_bytes == 0) in xfs_itruncate_clear_reflink_flags()
1321 if (cfork->if_bytes == 0) in xfs_itruncate_clear_reflink_flags()
1683 if (cow_ifp && cow_ifp->if_bytes > 0) in xfs_inode_needs_inactive()
2419 ip->i_df.if_bytes = 0; in xfs_ifree()
H A Dxfs_inode.h300 return ip->i_cowfp && ip->i_cowfp->if_bytes; in xfs_inode_has_cow_data()
H A Dxfs_dir2_readdir.c61 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_getdents()
H A Dxfs_bmap_util.c1827 if (ip->i_cowfp && ip->i_cowfp->if_bytes) in xfs_swap_extents()
1831 if (tip->i_cowfp && tip->i_cowfp->if_bytes) in xfs_swap_extents()
H A Dxfs_reflink.c634 if (!ifp->if_bytes) in xfs_reflink_cancel_cow_blocks()
/openbmc/linux/fs/xfs/scrub/
H A Dattr.c540 bitmap_zero(ab->usedmap, ifp->if_bytes); in xchk_xattr_check_sf()
542 end = (unsigned char *)ifp->if_u1.if_data + ifp->if_bytes; in xchk_xattr_check_sf()
H A Dreaddir.c45 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xchk_dir_walk_sf()