Home
last modified time | relevance | path

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

/linux/fs/xfs/
H A Dxfs_inode_item.c238 switch (ip->i_df.if_format) { in xfs_inode_item_data_fork_size()
241 ip->i_df.if_nextents > 0 && in xfs_inode_item_data_fork_size()
242 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
251 ip->i_df.if_broot_bytes > 0) { in xfs_inode_item_data_fork_size()
252 *nbytes += ip->i_df.if_broot_bytes; in xfs_inode_item_data_fork_size()
258 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
259 *nbytes += xlog_calc_iovec_len(ip->i_df.if_bytes); in xfs_inode_item_data_fork_size()
344 switch (ip->i_df.if_format) { in xfs_inode_item_format_data_fork()
350 ip->i_df.if_nextents > 0 && in xfs_inode_item_format_data_fork()
351 ip->i_df.if_bytes > 0) { in xfs_inode_item_format_data_fork()
[all …]
H A Dxfs_inode.c71 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_data_map_shared()
1184 ASSERT(ip->i_df.if_nextents == 0); in xfs_inactive_truncate()
1398 ASSERT(ip->i_df.if_broot_bytes == 0); in xfs_inactive()
1458 if (S_ISDIR(VFS_I(ip)->i_mode) && ip->i_df.if_nextents > 0) { in xfs_inactive()
1801 ASSERT(ip->i_df.if_nextents == 0); in xfs_ifree()
2379 ASSERT(ip->i_df.if_format != XFS_DINODE_FMT_BTREE || in xfs_iflush()
2380 ip->i_df.if_nextents > XFS_IFORK_MAXEXT(ip, XFS_DATA_FORK)); in xfs_iflush()
2399 if (ip->i_df.if_format == XFS_DINODE_FMT_META_BTREE) { in xfs_iflush()
2409 if ((ip->i_df.if_format != XFS_DINODE_FMT_EXTENTS && in xfs_iflush()
2410 ip->i_df.if_format != XFS_DINODE_FMT_BTREE) || in xfs_iflush()
[all …]
H 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()
H 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()
H A Dxfs_icache.c120 memset(&ip->i_df, 0, sizeof(ip->i_df)); in xfs_inode_alloc()
148 xfs_idestroy_fork(&ip->i_df); in xfs_inode_free_callback()
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_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;
5300 __entry->format = ip->i_df.if_format;
5301 __entry->nex = ip->i_df.if_nextents;
/linux/fs/xfs/libxfs/
H A Dxfs_inode_buf.c278 xfs_idestroy_fork(&ip->i_df); in xfs_inode_from_disk()
307 to->di_big_nextents = cpu_to_be64(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk_iext_counters()
315 to->di_nextents = cpu_to_be32(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk_iext_counters()
334 to->di_format = xfs_ifork_format(&ip->i_df); in xfs_inode_to_disk()
H A Dxfs_attr_leaf.c711 if (dp->i_df.if_format == XFS_DINODE_FMT_DEV) { in xfs_attr_shortform_bytesfit()
733 dsize = dp->i_df.if_bytes; in xfs_attr_shortform_bytesfit()
735 switch (dp->i_df.if_format) { in xfs_attr_shortform_bytesfit()
744 if (!dp->i_forkoff && dp->i_df.if_bytes > in xfs_attr_shortform_bytesfit()
760 dsize = xfs_bmap_bmdr_space(dp->i_df.if_broot); in xfs_attr_shortform_bytesfit()
982 (dp->i_df.if_format != XFS_DINODE_FMT_BTREE) && in xfs_attr_sf_removename()
992 dp->i_df.if_format == XFS_DINODE_FMT_BTREE || in xfs_attr_sf_removename()
1131 if ((dp->i_df.if_format != XFS_DINODE_FMT_BTREE) && in xfs_attr_shortform_allfit()
1251 ASSERT(dp->i_df.if_format != XFS_DINODE_FMT_BTREE); in xfs_attr3_leaf_to_shortform()
H A Dxfs_dir2.c211 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()
H A Dxfs_rtgroup.c493 if (XFS_IS_CORRUPT(mp, !((1U << ip->i_df.if_format) & ops->fmt_mask))) { in xfs_rtginode_load()
/linux/fs/xfs/scrub/
H A Ddir_repair.c1022 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xrep_dir_find_entries()
1206 if (S_ISDIR(VFS_I(ip)->i_mode) && xfs_need_iread_extents(&ip->i_df)) { in xrep_dir_scan_ilock()
1680 ip_local = sc->ip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_dir_swap()
1681 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()
364 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()
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 Ddir.c1176 return dp->i_df.if_format == XFS_DINODE_FMT_EXTENTS && in xchk_dir_looks_zapped()
1177 dp->i_df.if_nextents == 0; in xchk_dir_looks_zapped()
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.c389 if (xfs_need_iread_extents(&ip->i_df)) in xchk_nlinks_ilock_dir()
H A Dparent_repair.c492 if (S_ISDIR(VFS_I(ip)->i_mode) && xfs_need_iread_extents(&ip->i_df)) { in xrep_parent_scan_ilock()
H A Drmap_repair.c620 if (xfs_need_iread_extents(&ip->i_df)) { in xrep_rmap_scan_ilock()
H A Dtrace.h2531 __entry->nextents = sc->ip->i_df.if_nextents;
2532 __entry->format = sc->ip->i_df.if_format;