/linux-6.12.1/fs/xfs/libxfs/ |
D | xfs_inode_fork.c | 67 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 …]
|
D | xfs_symlink_remote.c | 182 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()
|
D | xfs_iext_tree.c | 130 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()
|
D | xfs_dir2_sf.c | 344 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()
|
D | xfs_dir2_block.c | 1110 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()
|
D | xfs_inode_fork.h | 16 int64_t if_bytes; /* bytes in if_data */ member
|
D | xfs_inode_util.c | 347 ip->i_df.if_bytes = 0; in xfs_inode_init() 733 ip->i_df.if_bytes = 0; in xfs_inode_uninit()
|
D | xfs_exchmaps.c | 72 if (cfork->if_bytes > 0) in xfs_exchmaps_ensure_cowfork() 519 ifp->if_bytes = 0; in xfs_exchmaps_link_to_sf()
|
D | xfs_attr_leaf.c | 676 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/ |
D | xfs_inode_item.c | 238 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 …]
|
D | xfs_symlink.c | 307 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()
|
D | xfs_attr_list.c | 82 (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()
|
D | xfs_bmap_util.c | 483 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()
|
D | xfs_inode.c | 985 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()
|
D | xfs_inode.h | 306 return ip->i_cowfp && ip->i_cowfp->if_bytes; in xfs_inode_has_cow_data()
|
D | xfs_dir2_readdir.c | 62 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_getdents()
|
D | xfs_reflink.c | 630 if (!ifp->if_bytes) in xfs_reflink_cancel_cow_blocks()
|
/linux-6.12.1/fs/xfs/scrub/ |
D | symlink_repair.c | 263 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()
|
D | attr_repair.c | 468 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()
|
D | attr.c | 577 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()
|
D | readdir.c | 46 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xchk_dir_walk_sf()
|
D | dir_repair.c | 517 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()
|
D | tempfile.c | 830 temp_ifp->if_bytes); in xrep_tempfile_copyout_local()
|
D | bmap_repair.c | 529 ASSERT(ifp->if_bytes == 0); in xrep_bmap_extents_load()
|
D | inode_repair.c | 1701 sc->ip->i_disk_size = ifp->if_bytes; in xrep_inode_sfdir_size()
|