Home
last modified time | relevance | path

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

/linux/fs/xfs/scrub/
H 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()
H A Ddir_repair.c1028 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xrep_dir_find_entries()
1212 if (S_ISDIR(VFS_I(ip)->i_mode) && xfs_need_iread_extents(&ip->i_df)) { in xrep_dir_scan_ilock()
1701 ip_local = sc->ip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_dir_swap()
1702 temp_local = sc->tempip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_dir_swap()
H A Dparent.c95 if (!xfs_need_iread_extents(&dp->i_df)) in xchk_parent_ilock_dir()
363 if (!xfs_need_iread_extents(&dp->i_df)) in xchk_parent_lock_dir()
H A Drtbitmap.c160 if (xfs_iext_lookup_extent(ip, &ip->i_df, endoff, &icur, &map)) { in xchk_rtbitmap_check_extents()
H A Drtsummary.c246 if (xfs_iext_lookup_extent(ip, &ip->i_df, endoff, &icur, &map)) { in xchk_rtsum_compare()
H A Dinode_repair.c321 if (xfs_need_iread_extents(&dp->i_df)) in xrep_dinode_trylock_directory()
1696 sc->ip->i_df.if_nextents = nextents; in xrep_inode_blockcounts()
1899 switch (sc->ip->i_df.if_format) { in xrep_inode_dir_size()
H A Dattr_repair.c813 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()
H A Dnlinks.c395 if (xfs_need_iread_extents(&ip->i_df)) in xchk_nlinks_ilock_dir()
H A Dbmap.c794 struct xfs_ifork *ifp = &ip->i_df; in xchk_bmap_check_empty_datafork()
H A Dtrace.h2564 __entry->nextents = sc->ip->i_df.if_nextents;
2565 __entry->format = sc->ip->i_df.if_format;
/linux/fs/xfs/
H 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()
1177 struct xfs_ifork *ifp = &ip->i_df; in xfs_swap_extents_check_format()
1178 struct xfs_ifork *tifp = &tip->i_df; in xfs_swap_extents_check_format()
1245 xfs_bmap_bmdr_space(ip->i_df.if_broot) > xfs_inode_fork_boff(tip)) in xfs_swap_extents_check_format()
1438 if (ip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks()
1440 if (tip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks()
1447 swap(ip->i_df, tip->i_df); in xfs_swap_extent_forks()
1469 switch (ip->i_df.if_format) { in xfs_swap_extent_forks()
1480 switch (tip->i_df.if_format) { in xfs_swap_extent_forks()
[all …]
H A Dxfs_inode.c71 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_data_map_shared()
1178 ASSERT(ip->i_df.if_nextents == 0); in xfs_inactive_truncate()
1392 ASSERT(ip->i_df.if_broot_bytes == 0); in xfs_inactive()
1465 if (S_ISDIR(VFS_I(ip)->i_mode) && ip->i_df.if_nextents > 0) { in xfs_inactive()
1808 ASSERT(ip->i_df.if_nextents == 0); in xfs_ifree()
2385 ASSERT(ip->i_df.if_format != XFS_DINODE_FMT_BTREE || in xfs_iflush()
2386 ip->i_df.if_nextents > XFS_IFORK_MAXEXT(ip, XFS_DATA_FORK)); in xfs_iflush()
2405 if (ip->i_df.if_format == XFS_DINODE_FMT_META_BTREE) { in xfs_iflush()
2415 if ((ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS && in xfs_iflush()
2416 ip->i_df.if_format != XFS_DINODE_FMT_BTREE) || in xfs_iflush()
[all …]
H A Dxfs_aops.c144 if (XFS_WPC(wpc)->data_seq != READ_ONCE(ip->i_df.if_seq)) { in xfs_imap_valid()
210 ASSERT(!xfs_need_iread_extents(&ip->i_df)); in xfs_map_blocks()
241 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks()
243 XFS_WPC(wpc)->data_seq = READ_ONCE(ip->i_df.if_seq); in xfs_map_blocks()
H A Dxfs_inode.h37 struct xfs_ifork i_df; /* data fork */ member
120 return &ip->i_df; in xfs_ifork_ptr()
325 return ip->i_df.if_nextents > 0 || ip->i_delayed_blks > 0; in xfs_inode_has_filedata()
H A Dxfs_iomap.c68 return cookie | READ_ONCE(ip->i_df.if_seq); in xfs_iomap_inode_sequence()
785 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_for_iomap()
790 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_for_iomap()
1078 if (xfs_need_iread_extents(&ip->i_df)) { in xfs_zoned_direct_write_iomap_begin()
1632 if (XFS_IS_CORRUPT(mp, !xfs_ifork_has_extents(&ip->i_df)) || in xfs_zoned_buffered_write_iomap_begin()
1661 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &scur, in xfs_zoned_buffered_write_iomap_begin()
1829 if (XFS_IS_CORRUPT(mp, !xfs_ifork_has_extents(&ip->i_df)) || in xfs_buffered_write_iomap_begin()
1855 eof = !xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap); in xfs_buffered_write_iomap_begin()
2259 if (xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) { in xfs_seek_iomap_begin()
H A Dxfs_reflink.c443 unsigned int seq_before = READ_ONCE(ip->i_df.if_seq); in xfs_reflink_fill_cow_hole()
477 if (seq_before != READ_ONCE(ip->i_df.if_seq)) { in xfs_reflink_fill_cow_hole()
531 unsigned int seq_before = READ_ONCE(ip->i_df.if_seq); in xfs_reflink_fill_delalloc()
552 if (seq_before != READ_ONCE(ip->i_df.if_seq)) { in xfs_reflink_fill_delalloc()
H A Dxfs_icache.c115 memset(&ip->i_df, 0, sizeof(ip->i_df)); in xfs_inode_alloc()
143 xfs_idestroy_fork(&ip->i_df); in xfs_inode_free_callback()
H A Dxfs_iops.c936 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_vn_setattr_size()
H A Dxfs_dquot.c783 if (xfs_iext_lookup_extent(quotip, &quotip->i_df, start, &cur, &got)) { in xfs_dq_get_next_id()
H A Dxfs_file.c1804 if (ip->i_df.if_nextents > 0) in xfs_dir_open()
H A Dxfs_trace.h2590 __entry->format = ip->i_df.if_format;
2591 __entry->nex = ip->i_df.if_nextents;
2592 __entry->broot_size = ip->i_df.if_broot_bytes;
5297 __entry->format = ip->i_df.if_format;
5298 __entry->nex = ip->i_df.if_nextents;
/linux/fs/xfs/libxfs/
H A Dxfs_dquot_buf.c400 if (XFS_IS_CORRUPT(mp, ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS && in xfs_dqinode_load()
401 ip->i_df.if_format != XFS_DINODE_FMT_BTREE)) { in xfs_dqinode_load()
H A Dxfs_rtrmap_btree.c520 cur->bc_nlevels = be16_to_cpu(ip->i_df.if_broot->bb_level) + 1; in xfs_rtrmapbt_init_cursor()
1025 struct xfs_btree_block *block = rtg_rmap(rtg)->i_df.if_broot; in xfs_rtrmap_highest_rgbno()
H A Dxfs_rtrefcount_btree.c418 cur->bc_nlevels = be16_to_cpu(ip->i_df.if_broot->bb_level) + 1; in xfs_rtrefcountbt_init_cursor()