Home
last modified time | relevance | path

Searched refs:i_d (Results 1 – 25 of 45) sorted by relevance

12

/kernel/linux/linux-5.10/fs/xfs/
Dxfs_inode.c63 if ((ip->i_d.di_flags & XFS_DIFLAG_EXTSIZE) && ip->i_d.di_extsize) in xfs_get_extsz_hint()
64 return ip->i_d.di_extsize; in xfs_get_extsz_hint()
83 if (ip->i_d.di_flags2 & XFS_DIFLAG2_COWEXTSIZE) in xfs_get_cowextsz_hint()
84 a = ip->i_d.di_cowextsize; in xfs_get_cowextsz_hint()
657 struct xfs_icdinode *dic = &ip->i_d; in xfs_ip2xflags()
711 if (pip->i_d.di_flags & XFS_DIFLAG_RTINHERIT) in xfs_inode_inherit_flags()
713 if (pip->i_d.di_flags & XFS_DIFLAG_EXTSZINHERIT) { in xfs_inode_inherit_flags()
715 ip->i_d.di_extsize = pip->i_d.di_extsize; in xfs_inode_inherit_flags()
717 if (pip->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) in xfs_inode_inherit_flags()
720 if ((pip->i_d.di_flags & XFS_DIFLAG_RTINHERIT) && in xfs_inode_inherit_flags()
[all …]
Dxfs_symlink.c36 int pathlen = ip->i_d.di_size; in xfs_readlink_bmap_ilocked()
89 link[ip->i_d.di_size] = '\0'; in xfs_readlink_bmap_ilocked()
114 pathlen = ip->i_d.di_size; in xfs_readlink()
210 if (dp->i_d.di_flags & XFS_DIFLAG_NOSYMLINKS) { in xfs_symlink()
253 ip->i_d.di_size = pathlen; in xfs_symlink()
268 ip->i_d.di_size = pathlen; in xfs_symlink()
303 i_size_write(VFS_I(ip), ip->i_d.di_size); in xfs_symlink()
403 size = (int)ip->i_d.di_size; in xfs_inactive_symlink_rmt()
404 ip->i_d.di_size = 0; in xfs_inactive_symlink_rmt()
480 pathlen = (int)ip->i_d.di_size; in xfs_inactive_symlink()
Dxfs_bmap_util.c157 ap->ip->i_d.di_nblocks += ralen; in xfs_bmap_rtalloc()
426 (ip->i_delayed_blks || XFS_ISIZE(ip) > ip->i_d.di_size)) { in xfs_getbmap()
442 (ip->i_d.di_flags & in xfs_getbmap()
623 if (ip->i_d.di_flags & (XFS_DIFLAG_PREALLOC | XFS_DIFLAG_APPEND)) in xfs_can_free_eofblocks()
1228 ip->i_d.di_projid != tip->i_d.di_projid)) in xfs_swap_extents_check_format()
1343 tip_flags2 = tip->i_d.di_flags2; in xfs_swap_extent_rmap()
1344 if (ip->i_d.di_flags2 & XFS_DIFLAG2_REFLINK) in xfs_swap_extent_rmap()
1345 tip->i_d.di_flags2 |= XFS_DIFLAG2_REFLINK; in xfs_swap_extent_rmap()
1416 tip->i_d.di_flags2 = tip_flags2; in xfs_swap_extent_rmap()
1421 tip->i_d.di_flags2 = tip_flags2; in xfs_swap_extent_rmap()
[all …]
Dxfs_inode.h58 struct xfs_icdinode i_d; /* most of ondisk inode */ member
90 return ip->i_d.di_size; in XFS_ISIZE()
104 return new_size > ip->i_d.di_size ? new_size : 0; in xfs_new_eof()
177 if (dp->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) in xfs_get_initial_prid()
178 return dp->i_d.di_projid; in xfs_get_initial_prid()
185 return ip->i_d.di_flags2 & XFS_DIFLAG2_REFLINK; in xfs_is_reflink_inode()
199 return ip->i_d.di_flags2 & XFS_DIFLAG2_BIGTIME; in xfs_inode_has_bigtime()
Dxfs_ioctl.c1119 fa->fsx_extsize = ip->i_d.di_extsize << ip->i_mount->m_sb.sb_blocklog; in xfs_fill_fsxattr()
1120 fa->fsx_cowextsize = ip->i_d.di_cowextsize << in xfs_fill_fsxattr()
1122 fa->fsx_projid = ip->i_d.di_projid; in xfs_fill_fsxattr()
1153 (ip->i_d.di_flags & XFS_DIFLAG_PREALLOC); in xfs_flags2diflags()
1194 (ip->i_d.di_flags2 & (XFS_DIFLAG2_REFLINK | in xfs_flags2diflags2()
1222 (ip->i_d.di_extsize % mp->m_sb.sb_rextsize)) in xfs_ioctl_setattr_xflags()
1228 ip->i_d.di_flags2 &= ~XFS_DIFLAG2_REFLINK; in xfs_ioctl_setattr_xflags()
1239 ip->i_d.di_flags = xfs_flags2diflags(ip, fa->fsx_xflags); in xfs_ioctl_setattr_xflags()
1240 ip->i_d.di_flags2 = di_flags2; in xfs_ioctl_setattr_xflags()
1265 !(ip->i_d.di_flags2 & XFS_DIFLAG2_DAX)) || in xfs_ioctl_setattr_prepare_dax()
[all …]
Dxfs_iops.c559 XFS_FSB_TO_BB(mp, ip->i_d.di_nblocks + ip->i_delayed_blks); in xfs_vn_getattr()
564 stat->btime = ip->i_d.di_crtime; in xfs_vn_getattr()
572 if (ip->i_d.di_flags & XFS_DIFLAG_IMMUTABLE) in xfs_vn_getattr()
574 if (ip->i_d.di_flags & XFS_DIFLAG_APPEND) in xfs_vn_getattr()
576 if (ip->i_d.di_flags & XFS_DIFLAG_NODUMP) in xfs_vn_getattr()
700 error = xfs_qm_vop_dqalloc(ip, uid, gid, ip->i_d.di_projid, in xfs_setattr_nonsize()
963 (newsize > ip->i_d.di_size && oldsize != ip->i_d.di_size)) { in xfs_setattr_size()
965 ip->i_d.di_size, newsize - 1); in xfs_setattr_size()
1007 ip->i_d.di_size = newsize; in xfs_setattr_size()
1280 if (ip->i_d.di_flags2 & XFS_DIFLAG2_DAX) in xfs_inode_should_enable_dax()
[all …]
Dxfs_rtalloc.c964 rbmblocks = XFS_B_TO_FSB(mp, mp->m_rbmip->i_d.di_size); in xfs_growfs_rt()
965 rsumblocks = XFS_B_TO_FSB(mp, mp->m_rsumip->i_d.di_size); in xfs_growfs_rt()
1034 mp->m_rbmip->i_d.di_size = in xfs_growfs_rt()
1036 i_size_write(VFS_I(mp->m_rbmip), mp->m_rbmip->i_d.di_size); in xfs_growfs_rt()
1048 mp->m_rsumip->i_d.di_size = nmp->m_rsumsize; in xfs_growfs_rt()
1049 i_size_write(VFS_I(mp->m_rsumip), mp->m_rsumip->i_d.di_size); in xfs_growfs_rt()
1316 if (!(mp->m_rbmip->i_d.di_flags & XFS_DIFLAG_NEWRTBM)) { in xfs_rtpick_extent()
1317 mp->m_rbmip->i_d.di_flags |= XFS_DIFLAG_NEWRTBM; in xfs_rtpick_extent()
Dxfs_filestream.h25 (ip->i_d.di_flags & XFS_DIFLAG_FILESTREAM); in xfs_inode_is_filestream()
Dxfs_reflink.c885 src->i_d.di_flags2 |= XFS_DIFLAG2_REFLINK; in xfs_reflink_set_inode_flag()
897 dest->i_d.di_flags2 |= XFS_DIFLAG2_REFLINK; in xfs_reflink_set_inode_flag()
941 dest->i_d.di_size = newlen; in xfs_reflink_update_dest()
945 dest->i_d.di_cowextsize = cowextsize; in xfs_reflink_update_dest()
946 dest->i_d.di_flags2 |= XFS_DIFLAG2_COWEXTSIZE; in xfs_reflink_update_dest()
1138 ip->i_d.di_size = newlen; in xfs_reflink_remap_extent()
1437 ip->i_d.di_flags2 &= ~XFS_DIFLAG2_REFLINK; in xfs_reflink_clear_inode_flag()
Dxfs_file.c92 ip->i_d.di_flags |= XFS_DIFLAG_PREALLOC; in xfs_update_prealloc_flags()
94 ip->i_d.di_flags &= ~XFS_DIFLAG_PREALLOC; in xfs_update_prealloc_flags()
1122 (src->i_d.di_flags2 & XFS_DIFLAG2_COWEXTSIZE) && in xfs_file_remap_range()
1124 !(dest->i_d.di_flags2 & XFS_DIFLAG2_COWEXTSIZE)) in xfs_file_remap_range()
1125 cowextsize = src->i_d.di_cowextsize; in xfs_file_remap_range()
1207 bufsize = (size_t)min_t(loff_t, XFS_READDIR_BUFSIZE, ip->i_d.di_size); in xfs_file_readdir()
Dxfs_qm.c994 if (qip->i_d.di_nblocks == 0) in xfs_qm_reset_dqcounts_buf()
1176 nblks = (xfs_qcnt_t)ip->i_d.di_nblocks - rtblks; in xfs_qm_dqusage_adjust()
1718 if (ip->i_d.di_projid != prid) { in xfs_qm_vop_dqalloc()
1781 xfs_trans_mod_dquot(tp, prevdq, bfield, -(ip->i_d.di_nblocks)); in xfs_qm_vop_chown()
1785 xfs_trans_mod_dquot(tp, newdq, bfield, ip->i_d.di_nblocks); in xfs_qm_vop_chown()
1853 ip->i_d.di_projid != pdqp->q_id) in xfs_qm_vop_chown_reserve()
1864 ip->i_d.di_nblocks + ip->i_delayed_blks, in xfs_qm_vop_chown_reserve()
1927 ASSERT(ip->i_d.di_projid == pdqp->q_id); in xfs_qm_vop_create_dqattach()
Dxfs_qm_bhv.c63 if (!xfs_qm_dqget(mp, ip->i_d.di_projid, XFS_DQTYPE_PROJ, false, &dqp)) { in xfs_qm_statvfs()
Dxfs_itable.c82 dic = &ip->i_d; in xfs_bulkstat_one_int()
87 buf->bs_projectid = ip->i_d.di_projid; in xfs_bulkstat_one_int()
Dxfs_icache.c67 memset(&ip->i_d, 0, sizeof(ip->i_d)); in xfs_inode_alloc()
311 if (ip->i_d.di_nblocks != 0) { in xfs_iget_check_free_state()
1269 ip->i_d.di_projid != eofb->eof_prid) in xfs_inode_match_id()
1293 ip->i_d.di_projid == eofb->eof_prid) in xfs_inode_match_id_union()
Dxfs_linux.h237 (((ip)->i_d.di_flags & XFS_DIFLAG_REALTIME) && \
Dxfs_aops.c39 XFS_I(ioend->io_inode)->i_d.di_size; in xfs_ioend_is_append()
91 ip->i_d.di_size = isize; in __xfs_setfilesize()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_dir2_sf.c347 dp->i_d.di_size = size; in xfs_dir2_block_to_sf()
382 ASSERT(dp->i_d.di_size >= offsetof(struct xfs_dir2_sf_hdr, parent)); in xfs_dir2_sf_addname()
383 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_addname()
386 ASSERT(dp->i_d.di_size >= xfs_dir2_sf_hdr_size(sfp->i8count)); in xfs_dir2_sf_addname()
404 new_isize = (int)dp->i_d.di_size + incr_isize; in xfs_dir2_sf_addname()
495 dp->i_d.di_size = new_isize; in xfs_dir2_sf_addname_easy()
532 old_isize = (int)dp->i_d.di_size; in xfs_dir2_sf_addname_hard()
589 dp->i_d.di_size = new_isize; in xfs_dir2_sf_addname_hard()
700 ASSERT((char *)sfep - (char *)sfp == dp->i_d.di_size); in xfs_dir2_sf_check()
824 ASSERT(dp->i_d.di_size == 0); in xfs_dir2_sf_create()
[all …]
Dxfs_dir2.c182 if (dp->i_d.di_size == 0) /* might happen during shutdown. */ in xfs_dir_isempty()
184 if (dp->i_d.di_size > XFS_IFORK_DSIZE(dp)) in xfs_dir_isempty()
587 if (size > dp->i_d.di_size) { in xfs_dir2_grow_inode()
588 dp->i_d.di_size = size; in xfs_dir2_grow_inode()
611 args->dp->i_d.di_size != args->geo->blksize)) in xfs_dir2_isblock()
690 if (dp->i_d.di_size > xfs_dir2_db_off_to_byte(args->geo, db + 1, 0)) in xfs_dir2_shrink_inode()
706 dp->i_d.di_size = XFS_FSB_TO_B(mp, bno); in xfs_dir2_shrink_inode()
Dxfs_trans_inode.c73 ip->i_d.di_crtime = tv; in xfs_trans_ichgtime()
141 ip->i_d.di_flags2 |= XFS_DIFLAG2_BIGTIME; in xfs_trans_log_inode()
Dxfs_inode_fork.h41 #define XFS_IFORK_Q(ip) ((ip)->i_d.di_forkoff != 0)
42 #define XFS_IFORK_BOFF(ip) ((int)((ip)->i_d.di_forkoff << 3))
Dxfs_bmap_btree.c186 (dst->bc_ino.ip->i_d.di_flags & XFS_DIFLAG_REALTIME)); in xfs_bmbt_update_cursor()
263 cur->bc_ino.ip->i_d.di_nblocks++; in xfs_bmbt_alloc_block()
290 ip->i_d.di_nblocks--; in xfs_bmbt_free_block()
Dxfs_dir2_block.c964 while (dp->i_d.di_size > args->geo->blksize) { in xfs_dir2_leaf_to_block()
1100 ASSERT(dp->i_d.di_size >= offsetof(struct xfs_dir2_sf_hdr, parent)); in xfs_dir2_sf_to_block()
1104 ASSERT(ifp->if_bytes == dp->i_d.di_size); in xfs_dir2_sf_to_block()
1106 ASSERT(dp->i_d.di_size >= xfs_dir2_sf_hdr_size(oldsfp->i8count)); in xfs_dir2_sf_to_block()
1118 dp->i_d.di_size = 0; in xfs_dir2_sf_to_block()
/kernel/linux/linux-5.10/fs/xfs/scrub/
Dsymlink.c46 len = ip->i_d.di_size; in xchk_symlink()
Drtbitmap.c105 if (sc->mp->m_rbmip->i_d.di_size != in xchk_rtbitmap()
Ddir.c526 if (bestcount != xfs_dir2_byte_to_db(geo, sc->ip->i_d.di_size)) { in xchk_directory_leaf1_bestfree()
805 if (sc->ip->i_d.di_size < xfs_dir2_sf_hdr_size(0)) { in xchk_directory()
831 sc->ip->i_d.di_size); in xchk_directory()

12