Home
last modified time | relevance | path

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

12

/linux-6.12.1/fs/xfs/libxfs/
Dxfs_inode_fork.c67 ifp->if_bytes = size; in xfs_init_local_fork()
135 ifp->if_bytes = 0; in xfs_iformat_extents()
225 ifp->if_bytes = 0; in xfs_iformat_btree()
517 int64_t new_size = ifp->if_bytes + byte_diff; in xfs_idata_realloc()
527 ifp->if_bytes = new_size; in xfs_idata_realloc()
578 ASSERT(ifp->if_bytes > 0); in xfs_iextents_copy()
591 ASSERT(copied <= ifp->if_bytes); in xfs_iextents_copy()
638 (ifp->if_bytes > 0)) { in xfs_iflush_fork()
640 ASSERT(ifp->if_bytes <= xfs_inode_fork_size(ip, whichfork)); in xfs_iflush_fork()
641 memcpy(cp, ifp->if_data, ifp->if_bytes); in xfs_iflush_fork()
[all …]
Dxfs_symlink_remote.c182 memcpy(bp->b_addr, ifp->if_data, ifp->if_bytes); in xfs_symlink_local_to_remote()
183 xfs_trans_log_buf(tp, bp, 0, ifp->if_bytes - 1); in xfs_symlink_local_to_remote()
192 ifp->if_bytes + sizeof(struct xfs_dsymlink_hdr)); in xfs_symlink_local_to_remote()
197 buf += xfs_symlink_hdr_set(mp, ip->i_ino, 0, ifp->if_bytes, bp); in xfs_symlink_local_to_remote()
198 memcpy(buf, ifp->if_data, ifp->if_bytes); in xfs_symlink_local_to_remote()
200 ifp->if_bytes - 1); in xfs_symlink_local_to_remote()
Dxfs_iext_tree.c130 return ifp->if_bytes / sizeof(struct xfs_iext_rec); in xfs_iext_count()
591 ASSERT(ifp->if_bytes == 0); in xfs_iext_alloc_root()
606 int64_t new_size = ifp->if_bytes + sizeof(struct xfs_iext_rec); in xfs_iext_realloc_root()
615 memset(new + ifp->if_bytes, 0, new_size - ifp->if_bytes); in xfs_iext_realloc_root()
669 ifp->if_bytes += sizeof(struct xfs_iext_rec); in xfs_iext_insert_raw()
901 ifp->if_bytes -= sizeof(struct xfs_iext_rec); in xfs_iext_remove()
1064 ifp->if_bytes = 0; in xfs_iext_destroy()
Dxfs_dir2_sf.c344 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_block_to_sf()
382 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_addname()
816 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_sf_create()
859 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_lookup()
935 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename()
1007 newsize = dp->i_df.if_bytes + (sfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_replace_needblock()
1032 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_replace()
1153 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino4()
1225 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino8()
Dxfs_dir2_block.c1110 ASSERT(ifp->if_bytes == dp->i_disk_size); in xfs_dir2_sf_to_block()
1119 sfp = kmalloc(ifp->if_bytes, GFP_KERNEL | __GFP_NOFAIL); in xfs_dir2_sf_to_block()
1120 memcpy(sfp, oldsfp, ifp->if_bytes); in xfs_dir2_sf_to_block()
1122 xfs_idata_realloc(dp, -ifp->if_bytes, XFS_DATA_FORK); in xfs_dir2_sf_to_block()
Dxfs_inode_fork.h16 int64_t if_bytes; /* bytes in if_data */ member
Dxfs_inode_util.c347 ip->i_df.if_bytes = 0; in xfs_inode_init()
733 ip->i_df.if_bytes = 0; in xfs_inode_uninit()
Dxfs_exchmaps.c72 if (cfork->if_bytes > 0) in xfs_exchmaps_ensure_cowfork()
519 ifp->if_bytes = 0; in xfs_exchmaps_link_to_sf()
Dxfs_attr_leaf.c676 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit()
687 if (!dp->i_forkoff && dp->i_df.if_bytes > in xfs_attr_shortform_bytesfit()
762 ASSERT(ifp->if_bytes == 0); in xfs_attr_shortform_create()
/linux-6.12.1/fs/xfs/
Dxfs_inode_item.c238 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
253 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
254 *nbytes += xlog_calc_iovec_len(ip->i_df.if_bytes); in xfs_inode_item_data_fork_size()
279 ip->i_af.if_bytes > 0) { in xfs_inode_item_attr_fork_size()
294 ip->i_af.if_bytes > 0) { in xfs_inode_item_attr_fork_size()
295 *nbytes += xlog_calc_iovec_len(ip->i_af.if_bytes); in xfs_inode_item_attr_fork_size()
347 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork()
356 ASSERT(data_bytes <= ip->i_df.if_bytes); in xfs_inode_item_format_data_fork()
386 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork()
390 ip->i_df.if_data, ip->i_df.if_bytes); in xfs_inode_item_format_data_fork()
[all …]
Dxfs_symlink.c307 if (ip->i_df.if_bytes) in xfs_inactive_symlink_rmt()
308 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt()
309 ASSERT(ip->i_df.if_bytes == 0); in xfs_inactive_symlink_rmt()
Dxfs_attr_list.c82 (dp->i_af.if_bytes + sf->count * 16) < context->bufsize)) { in xfs_attr_shortform_list()
127 ((char *)sfe >= ((char *)sf + dp->i_af.if_bytes)) || in xfs_attr_shortform_list()
Dxfs_bmap_util.c483 if (whichfork == XFS_COW_FORK && !ifp->if_bytes) in xfs_bmap_punch_delalloc_range()
1666 if (ip->i_cowfp && ip->i_cowfp->if_bytes) in xfs_swap_extents()
1670 if (tip->i_cowfp && tip->i_cowfp->if_bytes) in xfs_swap_extents()
Dxfs_inode.c985 if (dfork->if_bytes == 0 && cfork->if_bytes == 0) in xfs_itruncate_clear_reflink_flags()
987 if (cfork->if_bytes == 0) in xfs_itruncate_clear_reflink_flags()
1302 if (cow_ifp && cow_ifp->if_bytes > 0) in xfs_inode_needs_inactive()
Dxfs_inode.h306 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_disk_size); in xfs_dir2_sf_getdents()
Dxfs_reflink.c630 if (!ifp->if_bytes) in xfs_reflink_cancel_cow_blocks()
/linux-6.12.1/fs/xfs/scrub/
Dsymlink_repair.c263 sizeof(struct xfs_dsymlink_hdr) + ifp->if_bytes - 1); in xrep_symlink_local_to_remote()
312 ifp->if_bytes = 0; in xrep_symlink_swap_prep()
432 sc->tempip->i_df.if_bytes = 0; in xrep_symlink_rebuild()
Dattr_repair.c468 bitmap_zero(ab->usedmap, ifp->if_bytes); in xrep_xattr_recover_sf()
469 end = (unsigned char *)ifp->if_data + ifp->if_bytes; in xrep_xattr_recover_sf()
838 ASSERT(ifp->if_bytes == 0); in xrep_xattr_full_reset()
968 hdr = xfs_idata_realloc(ip, (int)sizeof(*hdr) - ifp->if_bytes, in xrep_xattr_fork_remove()
1327 ifp->if_bytes = 0; in xrep_xattr_swap_prep()
Dattr.c577 unsigned char *end = ifp->if_data + ifp->if_bytes; in xchk_xattr_check_sf()
581 bitmap_zero(ab->usedmap, ifp->if_bytes); in xchk_xattr_check_sf()
Dreaddir.c46 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xchk_dir_walk_sf()
Ddir_repair.c517 end = (unsigned char *)ifp->if_data + ifp->if_bytes; in xrep_dir_recover_sf()
1433 ifp->if_bytes = 0; in xrep_dir_reset_fork()
1493 ifp->if_bytes = 0; in xrep_dir_swap_prep()
Dtempfile.c830 temp_ifp->if_bytes); in xrep_tempfile_copyout_local()
Dbmap_repair.c529 ASSERT(ifp->if_bytes == 0); in xrep_bmap_extents_load()
Dinode_repair.c1701 sc->ip->i_disk_size = ifp->if_bytes; in xrep_inode_sfdir_size()

12