Home
last modified time | relevance | path

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

12

/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.c194 if (dp->i_disk_size == 0) /* might happen during shutdown. */ in xfs_dir_isempty()
196 if (dp->i_disk_size > xfs_inode_data_fork_size(dp)) in xfs_dir_isempty()
599 if (size > dp->i_disk_size) { in xfs_dir2_grow_inode()
600 dp->i_disk_size = size; in xfs_dir2_grow_inode()
628 if (XFS_IS_CORRUPT(mp, args->dp->i_disk_size != args->geo->blksize)) in xfs_dir2_isblock()
712 if (dp->i_disk_size > xfs_dir2_db_off_to_byte(args->geo, db + 1, 0)) in xfs_dir2_shrink_inode()
728 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.c227 ip->i_disk_size = be64_to_cpu(from->di_size); in xfs_inode_from_disk()
324 to->di_size = cpu_to_be64(ip->i_disk_size); in xfs_inode_to_disk()
Dxfs_inode_fork.c239 ip->i_disk_size = 0; in xfs_iformat_data_fork()
/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
165 return ip->i_disk_size; in XFS_ISIZE()
179 return new_size > ip->i_disk_size ? new_size : 0; in xfs_new_eof()
Dxfs_rtalloc.c996 rbmblocks = XFS_B_TO_FSB(mp, mp->m_rbmip->i_disk_size); in xfs_growfs_rt()
997 rsumblocks = XFS_B_TO_FSB(mp, mp->m_rsumip->i_disk_size); in xfs_growfs_rt()
1066 mp->m_rbmip->i_disk_size = in xfs_growfs_rt()
1068 i_size_write(VFS_I(mp->m_rbmip), mp->m_rbmip->i_disk_size); in xfs_growfs_rt()
1080 mp->m_rsumip->i_disk_size = nmp->m_rsumsize; in xfs_growfs_rt()
1081 i_size_write(VFS_I(mp->m_rsumip), mp->m_rsumip->i_disk_size); in xfs_growfs_rt()
Dxfs_iops.c891 (newsize > ip->i_disk_size && oldsize != ip->i_disk_size)) { in xfs_setattr_size()
893 ip->i_disk_size, newsize - 1); in xfs_setattr_size()
935 ip->i_disk_size = newsize; in xfs_setattr_size()
1269 i_size_write(inode, ip->i_disk_size); in xfs_setup_inode()
Dxfs_aops.c39 XFS_I(ioend->io_inode)->i_disk_size; in xfs_ioend_is_append()
70 ip->i_disk_size = isize; in xfs_setfilesize()
Dxfs_pnfs.c326 ip->i_disk_size = iattr->ia_size; in xfs_fs_commit_blocks()
Dxfs_inode_item.c208 ASSERT(ip->i_disk_size > 0); in xfs_inode_item_format_data_fork()
389 to->di_size = ip->i_disk_size; in xfs_inode_to_log_dinode()
Dxfs_bmap_util.c467 (ip->i_delayed_blks || XFS_ISIZE(ip) > ip->i_disk_size)) { in xfs_getbmap()
1732 sxp->sx_length != ip->i_disk_size || in xfs_swap_extents()
1733 sxp->sx_length != tip->i_disk_size) { in xfs_swap_extents()
Dxfs_itable.c96 buf->bs_size = ip->i_disk_size; in xfs_bulkstat_one_int()
Dxfs_qm_syscalls.c80 ip->i_disk_size = 0; in xfs_qm_scall_trunc_qfile()
Dxfs_inode.c842 ip->i_disk_size = 0; in xfs_init_new_inode()
1513 ip->i_disk_size = 0; in xfs_inactive_truncate()
1745 (ip->i_disk_size != 0 || XFS_ISIZE(ip) != 0 || in xfs_inactive()
2276 ASSERT(ip->i_disk_size == 0 || !S_ISREG(VFS_I(ip)->i_mode)); in xfs_ifree()
Dxfs_dir2_readdir.c61 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_getdents()
Dxfs_reflink.c1100 dest->i_disk_size = newlen; in xfs_reflink_update_dest()
1329 ip->i_disk_size = newlen; in xfs_reflink_remap_extent()
Dxfs_trace.h1417 __entry->size = XFS_I(file_inode(iocb->ki_filp))->i_disk_size;
1460 __entry->size = ip->i_disk_size;
1506 __entry->disize = ip->i_disk_size;
1544 __entry->size = ip->i_disk_size;
1574 __entry->size = ip->i_disk_size;
1602 __entry->size = ip->i_disk_size;
3293 __entry->src_disize = src->i_disk_size;
3298 __entry->dest_disize = dest->i_disk_size;
Dxfs_file.c1231 bufsize = (size_t)min_t(loff_t, XFS_READDIR_BUFSIZE, ip->i_disk_size); in xfs_file_readdir()
Dxfs_iomap.c588 ip->i_disk_size = i_size; in xfs_iomap_write_unwritten()
/fs/xfs/scrub/
Dsymlink.c45 len = ip->i_disk_size; in xchk_symlink()
Drtbitmap.c103 if (sc->mp->m_rbmip->i_disk_size != in xchk_rtbitmap()
Dparent.c104 parent->i_disk_size); in xchk_parent_count_parent_dentries()
Ddir.c817 if (sc->ip->i_disk_size < xfs_dir2_sf_hdr_size(0)) { in xchk_directory()
843 sc->ip->i_disk_size); in xchk_directory()

12