/linux/fs/xfs/ |
H A D | xfs_symlink.c | 61 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 in xfs_inactive_symlink() [all...] |
H A D | xfs_inode_item.c | 248 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() 261 ip->i_df.if_broot_bytes > 0) { in xfs_inode_item_data_fork_size() 262 *nbytes += ip->i_df.if_broot_bytes; in xfs_inode_item_data_fork_size() 268 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size() 269 *nbytes += xlog_calc_iovec_len(ip->i_df.if_bytes); 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 in xfs_inode_item_format_data_fork() [all...] |
H A D | xfs_bmap_util.c | 534 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() 1215 xfs_bmap_bmdr_space(ip->i_df.if_broot) > xfs_inode_fork_boff(tip)) 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 in xfs_swap_extent_forks() [all...] |
H A D | xfs_inode.c | 71 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() 1446 if (S_ISDIR(VFS_I(ip)->i_mode) && ip->i_df.if_nextents > 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() 2368 ip->i_df.if_nextents > XFS_IFORK_MAXEXT(ip, XFS_DATA_FORK)); in xfs_iflush() 2387 if (ip->i_df.if_format == XFS_DINODE_FMT_META_BTREE) { in xfs_iflush() 2398 ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS && in xfs_iflush() 2399 ip->i_df in xfs_iflush() [all...] |
H A D | xfs_dir2_readdir.c | 55 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()
|
H A D | xfs_inode.h | 38 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()
|
H A D | xfs_iomap.c | 68 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()
|
H A D | xfs_itable.c | 155 nextents = xfs_ifork_nextents(&ip->i_df); in xfs_bulkstat_one_int() 173 switch (ip->i_df.if_format) { in xfs_bulkstat_one_int()
|
H A D | xfs_quotaops.c | 40 tstate->nextents = ip->i_df.if_nextents; in xfs_qm_fill_state()
|
H A D | xfs_qm_syscalls.c | 88 ASSERT(ip->i_df.if_nextents == 0); in xfs_qm_scall_trunc_qfile()
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_dir2_sf.c | 344 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() 368 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xfs_dir2_sf_addname() 380 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_addname() 382 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_addname() 463 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xfs_dir2_sf_addname_easy() 529 memcpy(oldsfp, dp->i_df.if_data, old_isize); in xfs_dir2_sf_addname_hard() 604 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xfs_dir2_sf_addname_pick() 666 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xfs_dir2_sf_check() 811 if (dp->i_df in xfs_dir2_sf_create() [all...] |
H A D | xfs_inode_util.c | 317 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 in xfs_inode_uninit() [all...] |
H A D | xfs_inode_fork.c | 245 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()
|
H A D | xfs_dquot_buf.c | 402 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()
|
H A D | xfs_bmap.c | 206 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 in xfs_bmapi_remap() [all...] |
H A D | xfs_rtrmap_btree.c | 520 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()
|
H A D | xfs_dir2.c | 211 sfp = dp->i_df.if_data; in xfs_dir_isempty() 277 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xfs_dir2_format()
|
/linux/fs/xfs/scrub/ |
H A D | symlink_repair.c | 215 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()
|
H A D | readdir.c | 40 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()
|
H A D | dir_repair.c | 1018 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()
|
H A D | rtbitmap.c | 160 if (xfs_iext_lookup_extent(ip, &ip->i_df, endoff, &icur, &map)) { in xchk_rtbitmap_check_extents()
|
H A D | rtsummary.c | 250 if (xfs_iext_lookup_extent(ip, &ip->i_df, endoff, &icur, &map)) { in xchk_rtsum_compare()
|
H A D | inode_repair.c | 321 if (xfs_need_iread_extents(&dp->i_df)) in xrep_dinode_trylock_directory() 1692 sc->ip->i_df.if_nextents = nextents; in xrep_inode_blockcounts() 1895 switch (sc->ip->i_df.if_format) { in xrep_inode_dir_size()
|
H A D | dir.c | 1181 return dp->i_df.if_format == XFS_DINODE_FMT_EXTENTS && in xchk_dir_looks_zapped() 1182 dp->i_df.if_nextents == 0; in xchk_dir_looks_zapped()
|
H A D | attr_repair.c | 813 if (sc->tempip->i_df.if_format == XFS_DINODE_FMT_BTREE) { in xrep_xattr_full_reset() 966 if (ip->i_df.if_format == XFS_DINODE_FMT_BTREE) { in xrep_xattr_fork_remove()
|