Home
last modified time | relevance | path

Searched refs:i_disk_size (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.6.21/fs/xfs/libxfs/
Dxfs_dir2_sf.c347 dp->i_disk_size = size; in xfs_dir2_block_to_sf()
382 ASSERT(dp->i_disk_size >= offsetof(struct xfs_dir2_sf_hdr, parent)); in xfs_dir2_sf_addname()
383 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_addname()
386 ASSERT(dp->i_disk_size >= xfs_dir2_sf_hdr_size(sfp->i8count)); in xfs_dir2_sf_addname()
404 new_isize = (int)dp->i_disk_size + incr_isize; in xfs_dir2_sf_addname()
495 dp->i_disk_size = new_isize; in xfs_dir2_sf_addname_easy()
532 old_isize = (int)dp->i_disk_size; in xfs_dir2_sf_addname_hard()
589 dp->i_disk_size = new_isize; in xfs_dir2_sf_addname_hard()
700 ASSERT((char *)sfep - (char *)sfp == dp->i_disk_size); in xfs_dir2_sf_check()
824 ASSERT(dp->i_disk_size == 0); in xfs_dir2_sf_create()
[all …]
Dxfs_dir2.c195 if (dp->i_disk_size == 0) /* might happen during shutdown. */ in xfs_dir_isempty()
197 if (dp->i_disk_size > xfs_inode_data_fork_size(dp)) in xfs_dir_isempty()
600 if (size > dp->i_disk_size) { in xfs_dir2_grow_inode()
601 dp->i_disk_size = size; in xfs_dir2_grow_inode()
629 if (XFS_IS_CORRUPT(mp, args->dp->i_disk_size != args->geo->blksize)) in xfs_dir2_isblock()
713 if (dp->i_disk_size > xfs_dir2_db_off_to_byte(args->geo, db + 1, 0)) in xfs_dir2_shrink_inode()
729 dp->i_disk_size = XFS_FSB_TO_B(mp, bno); in xfs_dir2_shrink_inode()
Dxfs_dir2_block.c964 while (dp->i_disk_size > args->geo->blksize) { in xfs_dir2_leaf_to_block()
1100 ASSERT(dp->i_disk_size >= offsetof(struct xfs_dir2_sf_hdr, parent)); in xfs_dir2_sf_to_block()
1104 ASSERT(ifp->if_bytes == dp->i_disk_size); in xfs_dir2_sf_to_block()
1106 ASSERT(dp->i_disk_size >= xfs_dir2_sf_hdr_size(oldsfp->i8count)); in xfs_dir2_sf_to_block()
1118 dp->i_disk_size = 0; in xfs_dir2_sf_to_block()
Dxfs_inode_buf.c228 ip->i_disk_size = be64_to_cpu(from->di_size); in xfs_inode_from_disk()
325 to->di_size = cpu_to_be64(ip->i_disk_size); in xfs_inode_to_disk()
Dxfs_inode_fork.c245 ip->i_disk_size = 0; in xfs_iformat_data_fork()
/linux-6.6.21/fs/xfs/
Dxfs_symlink.c38 int pathlen = ip->i_disk_size; in xfs_readlink_bmap_ilocked()
91 link[ip->i_disk_size] = '\0'; in xfs_readlink_bmap_ilocked()
114 pathlen = ip->i_disk_size; in xfs_readlink()
262 ip->i_disk_size = pathlen; in xfs_symlink()
277 ip->i_disk_size = pathlen; in xfs_symlink()
312 i_size_write(VFS_I(ip), ip->i_disk_size); in xfs_symlink()
411 size = (int)ip->i_disk_size; in xfs_inactive_symlink_rmt()
412 ip->i_disk_size = 0; in xfs_inactive_symlink_rmt()
488 pathlen = (int)ip->i_disk_size; in xfs_inactive_symlink()
Dxfs_inode.h57 xfs_fsize_t i_disk_size; /* number of bytes in file */ member
183 return ip->i_disk_size; in XFS_ISIZE()
197 return new_size > ip->i_disk_size ? new_size : 0; in xfs_new_eof()
Dxfs_rtalloc.c1017 rbmblocks = XFS_B_TO_FSB(mp, mp->m_rbmip->i_disk_size); in xfs_growfs_rt()
1018 rsumblocks = XFS_B_TO_FSB(mp, mp->m_rsumip->i_disk_size); in xfs_growfs_rt()
1087 mp->m_rbmip->i_disk_size = in xfs_growfs_rt()
1089 i_size_write(VFS_I(mp->m_rbmip), mp->m_rbmip->i_disk_size); in xfs_growfs_rt()
1101 mp->m_rsumip->i_disk_size = nmp->m_rsumsize; in xfs_growfs_rt()
1102 i_size_write(VFS_I(mp->m_rsumip), mp->m_rsumip->i_disk_size); in xfs_growfs_rt()
Dxfs_iops.c897 (newsize > ip->i_disk_size && oldsize != ip->i_disk_size)) { in xfs_setattr_size()
899 ip->i_disk_size, newsize - 1); in xfs_setattr_size()
941 ip->i_disk_size = newsize; in xfs_setattr_size()
1276 i_size_write(inode, ip->i_disk_size); in xfs_setup_inode()
Dxfs_aops.c41 XFS_I(ioend->io_inode)->i_disk_size; in xfs_ioend_is_append()
72 ip->i_disk_size = isize; in xfs_setfilesize()
Dxfs_pnfs.c328 ip->i_disk_size = iattr->ia_size; in xfs_fs_commit_blocks()
Dxfs_itable.c107 buf->bs_size = ip->i_disk_size; in xfs_bulkstat_one_int()
Dxfs_inode_item.c355 ASSERT(ip->i_disk_size > 0); in xfs_inode_item_format_data_fork()
536 to->di_size = ip->i_disk_size; in xfs_inode_to_log_dinode()
Dxfs_bmap_util.c465 (ip->i_delayed_blks || XFS_ISIZE(ip) > ip->i_disk_size)) { in xfs_getbmap()
1737 sxp->sx_length != ip->i_disk_size || in xfs_swap_extents()
1738 sxp->sx_length != tip->i_disk_size) { in xfs_swap_extents()
Dxfs_qm_syscalls.c80 ip->i_disk_size = 0; in xfs_qm_scall_trunc_qfile()
Dxfs_dir2_readdir.c61 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_getdents()
Dxfs_reflink.c1102 dest->i_disk_size = newlen; in xfs_reflink_update_dest()
1331 ip->i_disk_size = newlen; in xfs_reflink_remap_extent()
Dxfs_inode.c842 ip->i_disk_size = 0; in xfs_init_new_inode()
1519 ip->i_disk_size = 0; in xfs_inactive_truncate()
1748 (ip->i_disk_size != 0 || XFS_ISIZE(ip) != 0 || in xfs_inactive()
2365 ASSERT(ip->i_disk_size == 0 || !S_ISREG(VFS_I(ip)->i_mode)); in xfs_ifree()
Dxfs_trace.h1419 __entry->size = XFS_I(file_inode(iocb->ki_filp))->i_disk_size;
1461 __entry->size = ip->i_disk_size;
1507 __entry->disize = ip->i_disk_size;
1546 __entry->size = ip->i_disk_size;
1576 __entry->size = ip->i_disk_size;
1604 __entry->size = ip->i_disk_size;
3328 __entry->src_disize = src->i_disk_size;
3333 __entry->dest_disize = dest->i_disk_size;
Dxfs_file.c1291 bufsize = (size_t)min_t(loff_t, XFS_READDIR_BUFSIZE, ip->i_disk_size); in xfs_file_readdir()
/linux-6.6.21/fs/xfs/scrub/
Dsymlink.c45 len = ip->i_disk_size; in xchk_symlink()
Drtbitmap.c104 if (sc->mp->m_rbmip->i_disk_size != in xchk_rtbitmap()
Drtsummary.c168 mp->m_rbmip->i_disk_size) in xchk_rtsum_compute()
Dreaddir.c45 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xchk_dir_walk_sf()
Ddir.c764 if (sc->ip->i_disk_size < xfs_dir2_sf_hdr_size(0)) { in xchk_directory()

12