Home
last modified time | relevance | path

Searched refs:i_df (Results 1 – 25 of 43) sorted by relevance

12

/fs/xfs/libxfs/
A Dxfs_dir2_sf.c344 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_block_to_sf()
346 dp->i_df.if_format = XFS_DINODE_FMT_LOCAL; in xfs_dir2_block_to_sf()
529 memcpy(oldsfp, dp->i_df.if_data, old_isize); in xfs_dir2_sf_addname_hard()
812 dp->i_df.if_format = XFS_DINODE_FMT_LOCAL; in xfs_dir2_sf_create()
816 ASSERT(dp->i_df.if_bytes == 0); in xfs_dir2_sf_create()
935 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename()
1056 sfp = dp->i_df.if_data; in xfs_dir2_sf_replace()
1153 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino4()
1167 sfp = dp->i_df.if_data; in xfs_dir2_sf_toino4()
1225 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino8()
[all …]
A Dxfs_inode_util.c317 ip->i_df.if_nextents = 0; in xfs_inode_init()
338 ip->i_df.if_format = XFS_DINODE_FMT_DEV; in xfs_inode_init()
349 ip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_inode_init()
350 ip->i_df.if_bytes = 0; in xfs_inode_init()
351 ip->i_df.if_data = NULL; in xfs_inode_init()
733 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_inode_uninit()
734 kfree(ip->i_df.if_data); in xfs_inode_uninit()
735 ip->i_df.if_data = NULL; in xfs_inode_uninit()
736 ip->i_df.if_bytes = 0; in xfs_inode_uninit()
743 ip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_inode_uninit()
A Dxfs_inode_fork.c245 ip->i_df.if_format = dip->di_format; in xfs_iformat_data_fork()
246 ip->i_df.if_nextents = xfs_dfork_data_extents(dip); in xfs_iformat_data_fork()
247 smp_store_release(&ip->i_df.if_needextents, in xfs_iformat_data_fork()
248 ip->i_df.if_format == XFS_DINODE_FMT_BTREE ? 1 : 0); in xfs_iformat_data_fork()
261 switch (ip->i_df.if_format) { in xfs_iformat_data_fork()
651 return &ip->i_df; in xfs_iext_state_to_fork()
697 ip->i_df.if_data, ip->i_df.if_bytes, fa); in xfs_ifork_verify_local_data()
A Dxfs_inode_buf.c274 xfs_idestroy_fork(&ip->i_df); in xfs_inode_from_disk()
303 to->di_big_nextents = cpu_to_be64(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk_iext_counters()
311 to->di_nextents = cpu_to_be32(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk_iext_counters()
330 to->di_format = xfs_ifork_format(&ip->i_df); in xfs_inode_to_disk()
A Dxfs_dquot_buf.c402 if (XFS_IS_CORRUPT(mp, ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS && in xfs_dqinode_load()
403 ip->i_df.if_format != XFS_DINODE_FMT_BTREE)) { in xfs_dqinode_load()
A Dxfs_attr_leaf.c650 if (dp->i_df.if_format == XFS_DINODE_FMT_DEV) { in xfs_attr_shortform_bytesfit()
676 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit()
678 switch (dp->i_df.if_format) { in xfs_attr_shortform_bytesfit()
687 if (!dp->i_forkoff && dp->i_df.if_bytes > in xfs_attr_shortform_bytesfit()
703 dsize = xfs_bmap_bmdr_space(dp->i_df.if_broot); in xfs_attr_shortform_bytesfit()
893 (dp->i_df.if_format != XFS_DINODE_FMT_BTREE) && in xfs_attr_sf_removename()
904 dp->i_df.if_format == XFS_DINODE_FMT_BTREE || in xfs_attr_sf_removename()
1044 (dp->i_df.if_format != XFS_DINODE_FMT_BTREE) && in xfs_attr_shortform_allfit()
1165 ASSERT(dp->i_df.if_format != XFS_DINODE_FMT_BTREE); in xfs_attr3_leaf_to_shortform()
A Dxfs_bmap.c206 if (ip->i_df.if_format == XFS_DINODE_FMT_DEV) in xfs_default_attroffset()
222 ip->i_df.if_format != XFS_DINODE_FMT_DEV && in xfs_bmap_forkoff_reset()
223 ip->i_df.if_format != XFS_DINODE_FMT_BTREE) { in xfs_bmap_forkoff_reset()
364 if (ip->i_df.if_nextents > 10000) in xfs_bmap_check_leaf_extents()
889 struct xfs_btree_block *block = ip->i_df.if_broot; in xfs_bmap_add_attrfork_btree()
937 if (ip->i_df.if_nextents * sizeof(struct xfs_bmbt_rec) <= in xfs_bmap_add_attrfork_extents()
969 if (ip->i_df.if_bytes <= xfs_inode_data_fork_size(ip)) in xfs_bmap_add_attrfork_local()
1005 switch (ip->i_df.if_format) { in xfs_bmap_set_attrforkoff()
1054 switch (ip->i_df.if_format) { in xfs_bmap_add_attrfork()
4589 if (ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS) in xfs_bmapi_remap()
[all …]
A Dxfs_symlink_remote.c340 ip->i_df.if_format = XFS_DINODE_FMT_LOCAL; in xfs_symlink_write_target()
A Dxfs_rtrmap_btree.c520 cur->bc_nlevels = be16_to_cpu(ip->i_df.if_broot->bb_level) + 1; in xfs_rtrmapbt_init_cursor()
1023 struct xfs_btree_block *block = rtg_rmap(rtg)->i_df.if_broot; in xfs_rtrmap_highest_rgbno()
/fs/xfs/
A Dxfs_inode_item.c248 switch (ip->i_df.if_format) { in xfs_inode_item_data_fork_size()
251 ip->i_df.if_nextents > 0 && in xfs_inode_item_data_fork_size()
252 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
268 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
355 switch (ip->i_df.if_format) { in xfs_inode_item_format_data_fork()
361 ip->i_df.if_nextents > 0 && in xfs_inode_item_format_data_fork()
362 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork()
388 ip->i_df.if_broot, in xfs_inode_item_format_data_fork()
389 ip->i_df.if_broot_bytes); in xfs_inode_item_format_data_fork()
402 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork()
[all …]
A Dxfs_symlink.c61 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_readlink()
66 if (XFS_IS_CORRUPT(ip->i_mount, !ip->i_df.if_data)) in xfs_readlink()
69 memcpy(link, ip->i_df.if_data, pathlen + 1); in xfs_readlink()
267 ASSERT(!xfs_need_iread_extents(&ip->i_df)); in xfs_inactive_symlink_rmt()
275 ASSERT(ip->i_df.if_nextents > 0 && ip->i_df.if_nextents <= 2); in xfs_inactive_symlink_rmt()
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()
353 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_inactive_symlink()
A Dxfs_bmap_util.c534 if (xfs_need_iread_extents(&ip->i_df)) in xfs_can_free_eofblocks()
564 xfs_iext_lookup_extent(ip, &ip->i_df, end_fsb, &icur, &imap)) in xfs_can_free_eofblocks()
1147 struct xfs_ifork *ifp = &ip->i_df; in xfs_swap_extents_check_format()
1148 struct xfs_ifork *tifp = &tip->i_df; in xfs_swap_extents_check_format()
1408 if (ip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks()
1410 if (tip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks()
1417 swap(ip->i_df, tip->i_df); in xfs_swap_extent_forks()
1439 switch (ip->i_df.if_format) { in xfs_swap_extent_forks()
1450 switch (tip->i_df.if_format) { in xfs_swap_extent_forks()
1584 uint32_t ipnext = ip->i_df.if_nextents; in xfs_swap_extents()
[all …]
A Dxfs_inode.c71 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_data_map_shared()
1172 ASSERT(ip->i_df.if_nextents == 0); in xfs_inactive_truncate()
1386 ASSERT(ip->i_df.if_broot_bytes == 0); in xfs_inactive()
1790 ASSERT(ip->i_df.if_nextents == 0); in xfs_ifree()
2367 ASSERT(ip->i_df.if_format != XFS_DINODE_FMT_BTREE || in xfs_iflush()
2398 ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS && in xfs_iflush()
2399 ip->i_df.if_format != XFS_DINODE_FMT_BTREE, in xfs_iflush()
2408 ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS && in xfs_iflush()
2409 ip->i_df.if_format != XFS_DINODE_FMT_BTREE && in xfs_iflush()
2410 ip->i_df.if_format != XFS_DINODE_FMT_LOCAL, in xfs_iflush()
[all …]
A Dxfs_dir2_readdir.c55 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xfs_dir2_sf_getdents()
61 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_getdents()
62 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_getdents()
537 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xfs_readdir()
A Dxfs_aops.c305 if (XFS_WPC(wpc)->data_seq != READ_ONCE(ip->i_df.if_seq)) { in xfs_imap_valid()
371 ASSERT(!xfs_need_iread_extents(&ip->i_df)); in xfs_map_blocks()
402 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks()
404 XFS_WPC(wpc)->data_seq = READ_ONCE(ip->i_df.if_seq); in xfs_map_blocks()
A Dxfs_inode.h38 struct xfs_ifork i_df; /* data fork */ member
121 return &ip->i_df; in xfs_ifork_ptr()
321 return ip->i_df.if_nextents > 0 || ip->i_delayed_blks > 0; in xfs_inode_has_filedata()
A Dxfs_iomap.c68 return cookie | READ_ONCE(ip->i_df.if_seq); in xfs_iomap_inode_sequence()
773 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_for_iomap()
778 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_for_iomap()
1063 if (xfs_need_iread_extents(&ip->i_df)) { in xfs_zoned_direct_write_iomap_begin()
1556 if (XFS_IS_CORRUPT(mp, !xfs_ifork_has_extents(&ip->i_df)) || in xfs_zoned_buffered_write_iomap_begin()
1585 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &scur, in xfs_zoned_buffered_write_iomap_begin()
1730 if (XFS_IS_CORRUPT(mp, !xfs_ifork_has_extents(&ip->i_df)) || in xfs_buffered_write_iomap_begin()
1749 eof = !xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap); in xfs_buffered_write_iomap_begin()
2080 if (xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) { in xfs_seek_iomap_begin()
A Dxfs_itable.c155 nextents = xfs_ifork_nextents(&ip->i_df); in xfs_bulkstat_one_int()
173 switch (ip->i_df.if_format) { in xfs_bulkstat_one_int()
A Dxfs_quotaops.c40 tstate->nextents = ip->i_df.if_nextents; in xfs_qm_fill_state()
/fs/xfs/scrub/
A Dsymlink_repair.c215 if (sc->ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xrep_symlink_salvage()
333 ip_local = sc->ip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_symlink_swap()
334 temp_local = sc->tempip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_symlink_swap()
432 xfs_idestroy_fork(&sc->tempip->i_df); in xrep_symlink_rebuild()
433 sc->tempip->i_df.if_bytes = 0; in xrep_symlink_rebuild()
434 sc->tempip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; in xrep_symlink_rebuild()
A Dreaddir.c40 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xchk_dir_walk_sf()
46 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xchk_dir_walk_sf()
A Ddir_repair.c1018 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xrep_dir_find_entries()
1202 if (S_ISDIR(VFS_I(ip)->i_mode) && xfs_need_iread_extents(&ip->i_df)) { in xrep_dir_scan_ilock()
1676 ip_local = sc->ip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_dir_swap()
1677 temp_local = sc->tempip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_dir_swap()
A Dparent.c95 if (!xfs_need_iread_extents(&dp->i_df)) in xchk_parent_ilock_dir()
364 if (!xfs_need_iread_extents(&dp->i_df)) in xchk_parent_lock_dir()
A Drtbitmap.c160 if (xfs_iext_lookup_extent(ip, &ip->i_df, endoff, &icur, &map)) { in xchk_rtbitmap_check_extents()
A Drtsummary.c250 if (xfs_iext_lookup_extent(ip, &ip->i_df, endoff, &icur, &map)) { in xchk_rtsum_compare()

Completed in 79 milliseconds

12