| /linux/fs/xfs/ |
| H A D | xfs_inode_item.c | 238 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 D | xfs_inode.c | 71 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 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_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_icache.c | 120 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 D | xfs_dquot.c | 783 if (xfs_iext_lookup_extent(quotip, "ip->i_df, start, &cur, &got)) { in xfs_dq_get_next_id()
|
| H A D | xfs_trace.h | 2590 __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 D | xfs_inode_buf.c | 278 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 D | xfs_attr_leaf.c | 711 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 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()
|
| H A D | xfs_rtgroup.c | 493 if (XFS_IS_CORRUPT(mp, !((1U << ip->i_df.if_format) & ops->fmt_mask))) { in xfs_rtginode_load()
|
| /linux/fs/xfs/scrub/ |
| H A D | dir_repair.c | 1022 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 D | parent.c | 95 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 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 | 246 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 | 1176 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 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()
|
| H A D | nlinks.c | 389 if (xfs_need_iread_extents(&ip->i_df)) in xchk_nlinks_ilock_dir()
|
| H A D | parent_repair.c | 492 if (S_ISDIR(VFS_I(ip)->i_mode) && xfs_need_iread_extents(&ip->i_df)) { in xrep_parent_scan_ilock()
|
| H A D | rmap_repair.c | 620 if (xfs_need_iread_extents(&ip->i_df)) { in xrep_rmap_scan_ilock()
|
| H A D | trace.h | 2531 __entry->nextents = sc->ip->i_df.if_nextents; 2532 __entry->format = sc->ip->i_df.if_format;
|