Home
last modified time | relevance | path

Searched refs:i_df (Results 1 - 25 of 52) sorted by relevance

123

/kernel/linux/linux-5.10/fs/xfs/libxfs/
H 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()
381 ASSERT(dp->i_df.if_flags & XFS_IFINLINE); in xfs_dir2_sf_addname()
383 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_addname()
384 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_addname()
385 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname()
468 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname_easy()
478 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname_easy()
531 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname_hard()
563 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df in xfs_dir2_sf_addname_hard()
[all...]
H A Dxfs_inode_fork.c235 ip->i_df.if_format = dip->di_format; in xfs_iformat_data_fork()
236 ip->i_df.if_nextents = be32_to_cpu(dip->di_nextents); in xfs_iformat_data_fork()
249 switch (ip->i_df.if_format) { in xfs_iformat_data_fork()
663 return &ip->i_df; in xfs_iext_state_to_fork()
702 ip->i_df.if_u1.if_data, ip->i_df.if_bytes, fa); in xfs_ifork_verify_local_data()
H A Dxfs_dir2.c186 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir_isempty()
281 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_createname()
376 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_lookup()
446 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_removename()
507 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_replace()
H A Dxfs_inode_buf.c277 xfs_idestroy_fork(&ip->i_df); in xfs_inode_from_disk()
312 to->di_format = xfs_ifork_format(&ip->i_df); in xfs_inode_to_disk()
329 to->di_nextents = cpu_to_be32(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk()
/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_inode_item.c53 switch (ip->i_df.if_format) { in xfs_inode_item_data_fork_size()
56 ip->i_df.if_nextents > 0 && in xfs_inode_item_data_fork_size()
57 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
65 ip->i_df.if_broot_bytes > 0) { in xfs_inode_item_data_fork_size()
66 *nbytes += ip->i_df.if_broot_bytes; in xfs_inode_item_data_fork_size()
72 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
73 *nbytes += roundup(ip->i_df.if_bytes, 4); in xfs_inode_item_data_fork_size()
159 switch (ip->i_df.if_format) { in xfs_inode_item_format_data_fork()
165 ip->i_df.if_nextents > 0 && in xfs_inode_item_format_data_fork()
166 ip->i_df in xfs_inode_item_format_data_fork()
[all...]
H A Dxfs_symlink.c107 ASSERT(!(ip->i_df.if_flags & XFS_IFINLINE)); in xfs_readlink()
254 ip->i_df.if_format = XFS_DINODE_FMT_LOCAL; in xfs_symlink()
380 ASSERT(ip->i_df.if_flags & XFS_IFEXTENTS); in xfs_inactive_symlink_rmt()
388 ASSERT(ip->i_df.if_nextents > 0 && ip->i_df.if_nextents <= 2); in xfs_inactive_symlink_rmt()
450 if (ip->i_df.if_bytes) in xfs_inactive_symlink_rmt()
451 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt()
452 ASSERT(ip->i_df.if_bytes == 0); in xfs_inactive_symlink_rmt()
495 if (ip->i_df.if_flags & XFS_IFINLINE) { in xfs_inactive_symlink()
H A Dxfs_inode.c114 if (ip->i_df.if_format == XFS_DINODE_FMT_BTREE && in xfs_ilock_data_map_shared()
115 (ip->i_df.if_flags & XFS_IFEXTENTS) == 0) in xfs_ilock_data_map_shared()
874 ip->i_df.if_nextents = 0; in xfs_ialloc()
900 ip->i_df.if_format = XFS_DINODE_FMT_DEV; in xfs_ialloc()
901 ip->i_df.if_flags = 0; in xfs_ialloc()
912 ip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_ialloc()
913 ip->i_df.if_flags = XFS_IFEXTENTS; in xfs_ialloc()
914 ip->i_df.if_bytes = 0; in xfs_ialloc()
915 ip->i_df.if_u1.if_root = NULL; in xfs_ialloc()
1679 ASSERT(ip->i_df in xfs_inactive_truncate()
[all...]
H A Dxfs_bmap_util.c555 struct xfs_ifork *ifp = &ip->i_df; in xfs_bmap_punch_delalloc_range()
616 if (!(ip->i_df.if_flags & XFS_IFEXTENTS)) in xfs_can_free_eofblocks()
1218 struct xfs_ifork *ifp = &ip->i_df; in xfs_swap_extents_check_format()
1219 struct xfs_ifork *tifp = &tip->i_df; in xfs_swap_extents_check_format()
1286 XFS_BMAP_BMDR_SPACE(ip->i_df.if_broot) > XFS_IFORK_BOFF(tip)) in xfs_swap_extents_check_format()
1463 if (ip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks()
1465 if (tip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks()
1472 swap(ip->i_df, tip->i_df); in xfs_swap_extent_forks()
1494 switch (ip->i_df in xfs_swap_extent_forks()
[all...]
H A Dxfs_aops.c269 if (XFS_WPC(wpc)->data_seq != READ_ONCE(ip->i_df.if_seq)) in xfs_imap_valid()
365 ASSERT(ip->i_df.if_format != XFS_DINODE_FMT_BTREE || in xfs_map_blocks()
366 (ip->i_df.if_flags & XFS_IFEXTENTS)); in xfs_map_blocks()
397 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks()
399 XFS_WPC(wpc)->data_seq = READ_ONCE(ip->i_df.if_seq); in xfs_map_blocks()
H A Dxfs_dir2_readdir.c60 ASSERT(dp->i_df.if_flags & XFS_IFINLINE); in xfs_dir2_sf_getdents()
61 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_getdents()
62 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_getdents()
64 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_getdents()
527 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xfs_readdir()
H A Dxfs_itable.c107 buf->bs_extents = xfs_ifork_nextents(&ip->i_df); in xfs_bulkstat_one_int()
118 switch (ip->i_df.if_format) { in xfs_bulkstat_one_int()
H A Dxfs_iomap.c680 if (!(ip->i_df.if_flags & XFS_IFEXTENTS)) { in xfs_ilock_for_iomap()
885 if (XFS_IS_CORRUPT(mp, !xfs_ifork_has_extents(&ip->i_df)) || in xfs_buffered_write_iomap_begin()
893 if (!(ip->i_df.if_flags & XFS_IFEXTENTS)) { in xfs_buffered_write_iomap_begin()
905 eof = !xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap); in xfs_buffered_write_iomap_begin()
1208 if (!(ip->i_df.if_flags & XFS_IFEXTENTS)) { in xfs_seek_iomap_begin()
1214 if (xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) { in xfs_seek_iomap_begin()
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H 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()
381 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_addname()
383 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_addname()
384 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_addname()
385 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname()
468 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname_easy()
478 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname_easy()
531 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname_hard()
563 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df in xfs_dir2_sf_addname_hard()
[all...]
H A Dxfs_inode_fork.c235 ip->i_df.if_format = dip->di_format; in xfs_iformat_data_fork()
236 ip->i_df.if_nextents = xfs_dfork_data_extents(dip); in xfs_iformat_data_fork()
237 smp_store_release(&ip->i_df.if_needextents, in xfs_iformat_data_fork()
238 ip->i_df.if_format == XFS_DINODE_FMT_BTREE ? 1 : 0); in xfs_iformat_data_fork()
251 switch (ip->i_df.if_format) { in xfs_iformat_data_fork()
679 return &ip->i_df; in xfs_iext_state_to_fork()
717 ip->i_df.if_u1.if_data, ip->i_df.if_bytes, fa); in xfs_ifork_verify_local_data()
H A Dxfs_dir2.c199 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir_isempty()
294 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_createname()
389 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_lookup()
459 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_removename()
520 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_replace()
H A Dxfs_inode_buf.c259 xfs_idestroy_fork(&ip->i_df); in xfs_inode_from_disk()
288 to->di_big_nextents = cpu_to_be64(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk_iext_counters()
296 to->di_nextents = cpu_to_be32(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk_iext_counters()
312 to->di_format = xfs_ifork_format(&ip->i_df); in xfs_inode_to_disk()
/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_inode_item.c201 switch (ip->i_df.if_format) { in xfs_inode_item_data_fork_size()
204 ip->i_df.if_nextents > 0 && in xfs_inode_item_data_fork_size()
205 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
213 ip->i_df.if_broot_bytes > 0) { in xfs_inode_item_data_fork_size()
214 *nbytes += ip->i_df.if_broot_bytes; in xfs_inode_item_data_fork_size()
220 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
221 *nbytes += xlog_calc_iovec_len(ip->i_df.if_bytes); in xfs_inode_item_data_fork_size()
307 switch (ip->i_df.if_format) { in xfs_inode_item_format_data_fork()
313 ip->i_df.if_nextents > 0 && in xfs_inode_item_format_data_fork()
314 ip->i_df in xfs_inode_item_format_data_fork()
[all...]
H A Dxfs_symlink.c126 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xfs_readlink()
131 if (XFS_IS_CORRUPT(ip->i_mount, !ip->i_df.if_u1.if_data)) in xfs_readlink()
134 memcpy(link, ip->i_df.if_u1.if_data, pathlen + 1); in xfs_readlink()
263 ip->i_df.if_format = XFS_DINODE_FMT_LOCAL; in xfs_symlink()
388 ASSERT(!xfs_need_iread_extents(&ip->i_df)); in xfs_inactive_symlink_rmt()
396 ASSERT(ip->i_df.if_nextents > 0 && ip->i_df.if_nextents <= 2); in xfs_inactive_symlink_rmt()
458 if (ip->i_df.if_bytes) in xfs_inactive_symlink_rmt()
459 xfs_idata_realloc(ip, -ip->i_df.if_bytes, XFS_DATA_FORK); in xfs_inactive_symlink_rmt()
460 ASSERT(ip->i_df in xfs_inactive_symlink_rmt()
[all...]
H A Dxfs_bmap_util.c597 struct xfs_ifork *ifp = &ip->i_df; in xfs_bmap_punch_delalloc_range()
675 if (xfs_need_iread_extents(&ip->i_df)) in xfs_can_free_eofblocks()
1270 struct xfs_ifork *ifp = &ip->i_df; in xfs_swap_extents_check_format()
1271 struct xfs_ifork *tifp = &tip->i_df; in xfs_swap_extents_check_format()
1338 XFS_BMAP_BMDR_SPACE(ip->i_df.if_broot) > xfs_inode_fork_boff(tip)) in xfs_swap_extents_check_format()
1537 if (ip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks()
1539 if (tip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks()
1546 swap(ip->i_df, tip->i_df); in xfs_swap_extent_forks()
1568 switch (ip->i_df in xfs_swap_extent_forks()
[all...]
H A Dxfs_inode.c117 if (xfs_need_iread_extents(&ip->i_df)) in xfs_ilock_data_map_shared()
843 ip->i_df.if_nextents = 0; in xfs_init_new_inode()
865 ip->i_df.if_format = XFS_DINODE_FMT_DEV; in xfs_init_new_inode()
876 ip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; in xfs_init_new_inode()
877 ip->i_df.if_bytes = 0; in xfs_init_new_inode()
878 ip->i_df.if_u1.if_root = NULL; in xfs_init_new_inode()
1526 ASSERT(ip->i_df.if_nextents == 0); in xfs_inactive_truncate()
1709 ASSERT(ip->i_df.if_broot_bytes == 0); in xfs_inactive()
1749 ip->i_df.if_nextents > 0 || ip->i_delayed_blks > 0)) in xfs_inactive()
2364 ASSERT(ip->i_df in xfs_ifree()
[all...]
H A Dxfs_dir2_readdir.c60 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_getdents()
61 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_getdents()
62 ASSERT(dp->i_df.if_u1.if_data != NULL); in xfs_dir2_sf_getdents()
64 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_getdents()
531 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xfs_readdir()
H A Dxfs_aops.c222 if (XFS_WPC(wpc)->data_seq != READ_ONCE(ip->i_df.if_seq)) { in xfs_imap_valid()
326 ASSERT(!xfs_need_iread_extents(&ip->i_df)); in xfs_map_blocks()
357 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks()
359 XFS_WPC(wpc)->data_seq = READ_ONCE(ip->i_df.if_seq); in xfs_map_blocks()
H A Dxfs_iomap.c62 return cookie | READ_ONCE(ip->i_df.if_seq); in xfs_iomap_inode_sequence()
727 if (xfs_need_iread_extents(&ip->i_df)) { in xfs_ilock_for_iomap()
987 if (XFS_IS_CORRUPT(mp, !xfs_ifork_has_extents(&ip->i_df)) || in xfs_buffered_write_iomap_begin()
1005 eof = !xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap); in xfs_buffered_write_iomap_begin()
1302 if (xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) { in xfs_seek_iomap_begin()
/kernel/linux/linux-6.6/fs/xfs/scrub/
H A Dreaddir.c45 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xchk_dir_walk_sf()
46 ASSERT(dp->i_df.if_u1.if_data != NULL); in xchk_dir_walk_sf()
48 sfp = (struct xfs_dir2_sf_hdr *)dp->i_df.if_u1.if_data; in xchk_dir_walk_sf()
288 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) in xchk_dir_walk()
339 if (dp->i_df.if_format == XFS_DINODE_FMT_LOCAL) { in xchk_dir_lookup()
H A Dparent.c77 if (!xfs_need_iread_extents(&dp->i_df)) in xchk_parent_ilock_dir()

Completed in 27 milliseconds

123