Home
last modified time | relevance | path

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

12

/linux-2.4.37.9/fs/xfs/
Dxfs_dfrag.c164 if ((ip->i_d.di_mode & S_IFMT) != (tip->i_d.di_mode & S_IFMT)) { in xfs_swapext()
170 if ((ip->i_d.di_flags & XFS_DIFLAG_REALTIME) != in xfs_swapext()
171 (tip->i_d.di_flags & XFS_DIFLAG_REALTIME)) { in xfs_swapext()
177 if (ip->i_d.di_format == XFS_DINODE_FMT_LOCAL || in xfs_swapext()
178 tip->i_d.di_format == XFS_DINODE_FMT_LOCAL) { in xfs_swapext()
195 sx.sx_length != ip->i_d.di_size || in xfs_swapext()
196 sx.sx_length != tip->i_d.di_size) { in xfs_swapext()
218 if ((sbp->bs_ctime.tv_sec != ip->i_d.di_ctime.t_sec) || in xfs_swapext()
219 (sbp->bs_ctime.tv_nsec != ip->i_d.di_ctime.t_nsec) || in xfs_swapext()
220 (sbp->bs_mtime.tv_sec != ip->i_d.di_mtime.t_sec) || in xfs_swapext()
[all …]
Dxfs_inode.c490 switch (ip->i_d.di_mode & S_IFMT) { in xfs_iformat()
500 ip->i_d.di_size = 0; in xfs_iformat()
756 || XFS_IFORK_NEXTENTS(ip, whichfork) > ip->i_d.di_nblocks)) { in xfs_iformat_btree()
979 &(ip->i_d), 1, ARCH_CONVERT); in xfs_iread()
992 ip->i_d.di_magic = INT_GET(dip->di_core.di_magic, ARCH_CONVERT); in xfs_iread()
993 ip->i_d.di_version = INT_GET(dip->di_core.di_version, ARCH_CONVERT); in xfs_iread()
994 ip->i_d.di_gen = INT_GET(dip->di_core.di_gen, ARCH_CONVERT); in xfs_iread()
995 ip->i_d.di_flushiter = INT_GET(dip->di_core.di_flushiter, ARCH_CONVERT); in xfs_iread()
1003 ip->i_d.di_mode = 0; in xfs_iread()
1025 if (ip->i_d.di_version == XFS_DINODE_VERSION_1) { in xfs_iread()
[all …]
Dxfs_utils.c118 } else if ((*ipp)->i_d.di_mode == 0) { in xfs_dir_lookup_int()
327 ASSERT (ip->i_d.di_nlink > 0); in xfs_droplink()
328 ip->i_d.di_nlink--; in xfs_droplink()
332 if (ip->i_d.di_nlink == 0) { in xfs_droplink()
360 ASSERT(ip->i_d.di_version == XFS_DINODE_VERSION_1); in xfs_bump_ino_vers2()
362 ip->i_d.di_version = XFS_DINODE_VERSION_2; in xfs_bump_ino_vers2()
363 ip->i_d.di_onlink = 0; in xfs_bump_ino_vers2()
364 memset(&(ip->i_d.di_pad[0]), 0, sizeof(ip->i_d.di_pad)); in xfs_bump_ino_vers2()
387 if (ip->i_d.di_nlink >= XFS_MAXLINK) in xfs_bumplink()
391 ASSERT(ip->i_d.di_nlink > 0); in xfs_bumplink()
[all …]
Dxfs_vnodeops.c107 if (vp->v_type == VDIR && ip->i_d.di_nextents > 0) { in xfs_open()
109 if (ip->i_d.di_nextents > 0) in xfs_open()
143 vap->va_size = ip->i_d.di_size; in xfs_getattr()
148 XFS_FSB_TO_BB(mp, ip->i_d.di_nblocks + ip->i_delayed_blks); in xfs_getattr()
153 vap->va_nlink = ip->i_d.di_nlink; in xfs_getattr()
167 vap->va_mode = ip->i_d.di_mode & MODEMASK; in xfs_getattr()
168 vap->va_uid = ip->i_d.di_uid; in xfs_getattr()
169 vap->va_gid = ip->i_d.di_gid; in xfs_getattr()
170 vap->va_projid = ip->i_d.di_projid; in xfs_getattr()
180 if (!(ip->i_d.di_flags & XFS_DIFLAG_REALTIME)) { in xfs_getattr()
[all …]
Dxfs_inode_item.c92 switch (ip->i_d.di_format) { in xfs_inode_item_size()
98 (ip->i_d.di_nextents > 0) && in xfs_inode_item_size()
142 ASSERT(ip->i_d.di_size > 0); in xfs_inode_item_size()
180 switch (ip->i_d.di_aformat) { in xfs_inode_item_size()
185 (ip->i_d.di_anextents > 0) && in xfs_inode_item_size()
293 vecp->i_addr = (xfs_caddr_t)&ip->i_d; in xfs_inode_item_format()
308 ASSERT(ip->i_d.di_version == XFS_DINODE_VERSION_1 || in xfs_inode_item_format()
310 if (ip->i_d.di_version == XFS_DINODE_VERSION_1) { in xfs_inode_item_format()
315 ASSERT(ip->i_d.di_nlink <= XFS_MAXLINK_1); in xfs_inode_item_format()
316 ip->i_d.di_onlink = ip->i_d.di_nlink; in xfs_inode_item_format()
[all …]
Dxfs_dir2.c158 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_isempty()
162 if (dp->i_d.di_size == 0) { in xfs_dir2_isempty()
165 if (dp->i_d.di_size > XFS_IFORK_DSIZE(dp)) in xfs_dir2_isempty()
186 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_init()
211 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_createname()
234 if (dp->i_d.di_format == XFS_DINODE_FMT_LOCAL) in xfs_dir2_createname()
264 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_lookup()
285 if (dp->i_d.di_format == XFS_DINODE_FMT_LOCAL) in xfs_dir2_lookup()
322 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir2_removename()
341 if (dp->i_d.di_format == XFS_DINODE_FMT_LOCAL) in xfs_dir2_removename()
[all …]
Dxfs_iocore.c71 return (ip->i_d.di_size); in xfs_size_fn()
111 if (ip->i_d.di_flags & XFS_DIFLAG_REALTIME) in xfs_iocore_inode_reinit()
113 io->io_dmevmask = ip->i_d.di_dmevmask; in xfs_iocore_inode_reinit()
114 io->io_dmstate = ip->i_d.di_dmstate; in xfs_iocore_inode_reinit()
Dxfs_dir2_sf.c218 dp->i_d.di_format = XFS_DINODE_FMT_LOCAL; in xfs_dir2_block_to_sf()
227 dp->i_d.di_size = size; in xfs_dir2_block_to_sf()
314 if (dp->i_d.di_size < offsetof(xfs_dir2_sf_hdr_t, parent)) { in xfs_dir2_sf_addname()
318 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir2_sf_addname()
321 ASSERT(dp->i_d.di_size >= XFS_DIR2_SF_HDR_SIZE(sfp->hdr.i8count)); in xfs_dir2_sf_addname()
346 old_isize = (int)dp->i_d.di_size; in xfs_dir2_sf_addname()
442 dp->i_d.di_size = new_isize; in xfs_dir2_sf_addname_easy()
480 old_isize = (int)dp->i_d.di_size; in xfs_dir2_sf_addname_hard()
539 dp->i_d.di_size = new_isize; in xfs_dir2_sf_addname_hard()
659 ASSERT((char *)sfep - (char *)sfp == dp->i_d.di_size); in xfs_dir2_sf_check()
[all …]
Dxfs_inode.h288 xfs_dinode_core_t i_d; /* most of ondisk inode */ member
327 #define XFS_IFORK_Q(ip) XFS_CFORK_Q(&(ip)->i_d)
333 #define XFS_IFORK_DSIZE(ip) XFS_CFORK_DSIZE(&ip->i_d, ip->i_mount)
339 #define XFS_IFORK_ASIZE(ip) XFS_CFORK_ASIZE(&ip->i_d, ip->i_mount)
345 #define XFS_IFORK_SIZE(ip,w) XFS_CFORK_SIZE(&ip->i_d, ip->i_mount, w)
351 #define XFS_IFORK_FORMAT(ip,w) XFS_CFORK_FORMAT(&ip->i_d, w)
357 #define XFS_IFORK_FMT_SET(ip,w,n) XFS_CFORK_FMT_SET(&ip->i_d, w, n)
363 #define XFS_IFORK_NEXTENTS(ip,w) XFS_CFORK_NEXTENTS(&ip->i_d, w)
369 #define XFS_IFORK_NEXT_SET(ip,w,n) XFS_CFORK_NEXT_SET(&ip->i_d, w, n)
464 (((vfsp)->vfs_flag & VFS_GRPID) || ((pip)->i_d.di_mode & S_ISGID))
Dxfs_dir.c219 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_isempty()
220 if (dp->i_d.di_size == 0) in xfs_dir_isempty()
222 if (dp->i_d.di_size > XFS_IFORK_DSIZE(dp)) in xfs_dir_isempty()
241 ASSERT((dir->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_init()
260 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_createname()
286 if (dp->i_d.di_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_createname()
288 if ((dp->i_d.di_size + newsize) <= XFS_IFORK_DSIZE(dp)) { in xfs_dir_createname()
324 ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_dir_canenter()
343 if (dp->i_d.di_format == XFS_DINODE_FMT_LOCAL) { in xfs_dir_canenter()
345 if ((dp->i_d.di_size + newsize) <= XFS_IFORK_DSIZE(dp)) in xfs_dir_canenter()
[all …]
Dxfs_rename.c329 if ((src_ip->i_d.di_mode & S_IFMT) == S_IFDIR) { in xfs_rename()
334 target_dp->i_d.di_nlink >= XFS_MAXLINK) { in xfs_rename()
343 src_is_directory = ((src_ip->i_d.di_mode & S_IFMT) == S_IFDIR); in xfs_rename()
451 if ((target_ip->i_d.di_mode & S_IFMT) == S_IFDIR) { in xfs_rename()
456 (target_ip->i_d.di_nlink > 2)) { in xfs_rename()
504 target_link_zero = (target_ip)->i_d.di_nlink==0; in xfs_rename()
Dxfs_iomap.c88 (void *)((unsigned long)((ip->i_d.di_size >> 32) & 0xffffffff)), in xfs_iomap_enter_trace()
89 (void *)((unsigned long)(ip->i_d.di_size & 0xffffffff)), in xfs_iomap_enter_trace()
122 (void *)((unsigned long)((ip->i_d.di_size >> 32) & 0xffffffff)), in xfs_iomap_map_trace()
123 (void *)((unsigned long)(ip->i_d.di_size & 0xffffffff)), in xfs_iomap_map_trace()
406 isize = ip->i_d.di_size; in xfs_iomap_write_direct()
436 ip->i_d.di_extsize ? ip->i_d.di_extsize : sbrtextsize; in xfs_iomap_write_direct()
483 if (!(flags & BMAPI_MMAP) && (offset < ip->i_d.di_size || rt)) in xfs_iomap_write_direct()
574 isize = ip->i_d.di_size; in xfs_iomap_write_delay()
593 if (!(ioflag & BMAPI_SYNC) && ((offset + count) > ip->i_d.di_size)) { in xfs_iomap_write_delay()
821 end_fsb = XFS_B_TO_FSB(mp, ip->i_d.di_size); in xfs_iomap_write_allocate()
Dxfs_rw.c89 ip->i_d.di_mode &= ~S_ISUID; in xfs_write_clear_setuid()
98 if (ip->i_d.di_mode & S_IXGRP) { in xfs_write_clear_setuid()
99 ip->i_d.di_mode &= ~S_ISGID; in xfs_write_clear_setuid()
Dxfs_attr.c125 (ip->i_d.di_aformat == XFS_DINODE_FMT_EXTENTS && in xfs_attr_fetch()
126 ip->i_d.di_anextents == 0)) in xfs_attr_fetch()
151 (ip->i_d.di_aformat == XFS_DINODE_FMT_EXTENTS && in xfs_attr_fetch()
152 ip->i_d.di_anextents == 0)) { in xfs_attr_fetch()
154 } else if (ip->i_d.di_aformat == XFS_DINODE_FMT_LOCAL) { in xfs_attr_fetch()
331 if ((dp->i_d.di_aformat == XFS_DINODE_FMT_LOCAL) || in xfs_attr_set()
332 ((dp->i_d.di_aformat == XFS_DINODE_FMT_EXTENTS) && in xfs_attr_set()
333 (dp->i_d.di_anextents == 0))) { in xfs_attr_set()
338 if (dp->i_d.di_aformat == XFS_DINODE_FMT_EXTENTS) in xfs_attr_set()
486 (dp->i_d.di_aformat == XFS_DINODE_FMT_EXTENTS && in xfs_attr_remove()
[all …]
Dxfs_bmap.c489 if (ip->i_d.di_nextents * sizeof(xfs_bmbt_rec_t) <= XFS_IFORK_DSIZE(ip)) in xfs_bmap_add_attrfork_extents()
519 if ((ip->i_d.di_mode & S_IFMT) == S_IFDIR) { in xfs_bmap_add_attrfork_local()
833 ip->i_d.di_nextents--; in xfs_bmap_add_extent_delay_real()
938 ip->i_d.di_nextents++; in xfs_bmap_add_extent_delay_real()
1011 ip->i_d.di_nextents++; in xfs_bmap_add_extent_delay_real()
1026 if (ip->i_d.di_format == XFS_DINODE_FMT_EXTENTS && in xfs_bmap_add_extent_delay_real()
1027 ip->i_d.di_nextents > ip->i_df.if_ext_max) { in xfs_bmap_add_extent_delay_real()
1099 ip->i_d.di_nextents++; in xfs_bmap_add_extent_delay_real()
1114 if (ip->i_d.di_format == XFS_DINODE_FMT_EXTENTS && in xfs_bmap_add_extent_delay_real()
1115 ip->i_d.di_nextents > ip->i_df.if_ext_max) { in xfs_bmap_add_extent_delay_real()
[all …]
Dxfs_iget.c264 if (ip->i_d.di_mode == 0) { in xfs_iget_core()
309 if ((ip->i_d.di_mode == 0) && !(flags & IGET_CREATE)) { in xfs_iget_core()
429 ASSERT(((ip->i_d.di_flags & XFS_DIFLAG_REALTIME) != 0) == in xfs_iget_core()
506 newnode = (ip->i_d.di_mode == 0); in xfs_iget()
601 if ((ip->i_d.di_mode == 0)) { in xfs_iput_new()
783 if ((ip->i_d.di_format == XFS_DINODE_FMT_BTREE) && in xfs_ilock_map_shared()
Dxfs_dir_leaf.c152 ASSERT(dp->i_d.di_size == 0); in xfs_dir_shortform_create()
153 if (dp->i_d.di_format == XFS_DINODE_FMT_EXTENTS) { in xfs_dir_shortform_create()
155 dp->i_d.di_format = XFS_DINODE_FMT_LOCAL; in xfs_dir_shortform_create()
166 dp->i_d.di_size = sizeof(*hdr); in xfs_dir_shortform_create()
189 if (dp->i_d.di_size < sizeof(xfs_dir_sf_hdr_t)) { in xfs_dir_shortform_addname()
193 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir_shortform_addname()
216 dp->i_d.di_size += size; in xfs_dir_shortform_addname()
239 if (dp->i_d.di_size < sizeof(xfs_dir_sf_hdr_t)) { in xfs_dir_shortform_removename()
243 ASSERT(dp->i_df.if_bytes == dp->i_d.di_size); in xfs_dir_shortform_removename()
262 if ((base + size) != dp->i_d.di_size) { in xfs_dir_shortform_removename()
[all …]
Dxfs_rtalloc.c1988 rbmblocks = XFS_B_TO_FSB(mp, mp->m_rbmip->i_d.di_size); in xfs_growfs_rt()
1989 rsumblocks = XFS_B_TO_FSB(mp, mp->m_rsumip->i_d.di_size); in xfs_growfs_rt()
2052 mp->m_rbmip->i_d.di_size = in xfs_growfs_rt()
2066 mp->m_rsumip->i_d.di_size = nmp->m_rsumsize; in xfs_growfs_rt()
2279 if (!(ip->i_d.di_flags & XFS_DIFLAG_NEWRTBM)) in xfs_rtfree_extent()
2280 ip->i_d.di_flags |= XFS_DIFLAG_NEWRTBM; in xfs_rtfree_extent()
2281 *(__uint64_t *)&ip->i_d.di_atime = 0; in xfs_rtfree_extent()
2391 seqp = (__uint64_t *)&ip->i_d.di_atime; in xfs_rtpick_extent()
2392 if (!(ip->i_d.di_flags & XFS_DIFLAG_NEWRTBM)) { in xfs_rtpick_extent()
2393 ip->i_d.di_flags |= XFS_DIFLAG_NEWRTBM; in xfs_rtpick_extent()
Dxfs_rw.h76 (((ip)->i_d.di_flags & XFS_DIFLAG_REALTIME) ? \
Dxfs_dmapi.h85 ( ((ip)->i_d.di_dmevmask & (1 << event)) || \
/linux-2.4.37.9/fs/xfs/linux-2.4/
Dxfs_lrw.c97 (void *)((unsigned long)((ip->i_d.di_size >> 32) & 0xffffffff)), in xfs_rw_enter_trace()
98 (void *)((unsigned long)(ip->i_d.di_size & 0xffffffff)), in xfs_rw_enter_trace()
291 if (*offset >= ip->i_d.di_size) { in xfs_read()
330 ret = (*offset < ip->i_d.di_size) ? in xfs_read()
350 inode->i_atime = ip->i_d.di_atime.t_sec; in xfs_read()
632 isize = xip->i_d.di_size; in xfs_write()
676 savedsize != xip->i_d.di_size) { in xfs_write()
677 *offset = isize = xip->i_d.di_size; in xfs_write()
708 if (((xip->i_d.di_mode & S_ISUID) || in xfs_write()
709 ((xip->i_d.di_mode & (S_ISGID | S_IXGRP)) == in xfs_write()
[all …]
Dxfs_super.c159 inode->i_mode = (ip->i_d.di_mode & MODEMASK) | VTTOIF(vp->v_type); in xfs_revalidate_inode()
160 inode->i_nlink = ip->i_d.di_nlink; in xfs_revalidate_inode()
161 inode->i_uid = ip->i_d.di_uid; in xfs_revalidate_inode()
162 inode->i_gid = ip->i_d.di_gid; in xfs_revalidate_inode()
170 inode->i_generation = ip->i_d.di_gen; in xfs_revalidate_inode()
171 i_size_write(inode, ip->i_d.di_size); in xfs_revalidate_inode()
173 XFS_FSB_TO_BB(mp, ip->i_d.di_nblocks + ip->i_delayed_blks); in xfs_revalidate_inode()
174 inode->i_atime = ip->i_d.di_atime.t_sec; in xfs_revalidate_inode()
175 inode->i_mtime = ip->i_d.di_mtime.t_sec; in xfs_revalidate_inode()
176 inode->i_ctime = ip->i_d.di_ctime.t_sec; in xfs_revalidate_inode()
[all …]
Dxfs_ioctl.c169 handle.ha_fid.xfs_fid_gen = ip->i_d.di_gen; in xfs_find_handle()
276 if (ip->i_d.di_mode == 0 || ip->i_d.di_gen != igen) { in xfs_vget_fsop_handlereq()
1143 flags = xfs_di2lxflags(ip->i_d.di_flags); in xfs_ioc_xattr()
1164 xfs_dic2xflags(&ip->i_d, ARCH_NOCONVERT)); in xfs_ioc_xattr()
/linux-2.4.37.9/fs/xfs/quota/
Dxfs_qm.c931 error = xfs_qm_dqattach_one(ip, ip->i_d.di_uid, XFS_DQ_USER, in xfs_qm_dqattach()
941 error = xfs_qm_dqattach_one(ip, ip->i_d.di_gid, XFS_DQ_GROUP, in xfs_qm_dqattach()
1356 if ((error = xfs_qm_dqget(mp, ip, ip->i_d.di_uid, XFS_DQ_USER, in xfs_qm_dqget_noattach()
1373 if ((error = xfs_qm_dqget(mp, ip, ip->i_d.di_gid, XFS_DQ_GROUP, in xfs_qm_dqget_noattach()
1605 if (qip->i_d.di_nblocks == 0) in xfs_qm_dqiterate()
1790 if (ip->i_d.di_mode == 0) { in xfs_qm_dqusage_adjust()
1810 nblks = (xfs_qcnt_t)ip->i_d.di_nblocks; in xfs_qm_dqusage_adjust()
1824 nblks = (xfs_qcnt_t)ip->i_d.di_nblocks - rtblks; in xfs_qm_dqusage_adjust()
2471 gid = ip->i_d.di_gid; in xfs_qm_vop_dqalloc()
2488 if (ip->i_d.di_uid != uid) { in xfs_qm_vop_dqalloc()
[all …]
Dxfs_qm_syscalls.c568 out->qs_uquota.qfs_nblks = uip->i_d.di_nblocks; in xfs_qm_scall_getqstat()
569 out->qs_uquota.qfs_nextents = uip->i_d.di_nextents; in xfs_qm_scall_getqstat()
574 out->qs_gquota.qfs_nblks = gip->i_d.di_nblocks; in xfs_qm_scall_getqstat()
575 out->qs_gquota.qfs_nextents = gip->i_d.di_nextents; in xfs_qm_scall_getqstat()
1309 d->d_bcount += (xfs_qcnt_t)ip->i_d.di_nblocks; in xfs_qm_internalqcheck_dqadjust()
1348 if (ip->i_d.di_mode == 0) { in xfs_qm_internalqcheck_adjust()
1366 (xfs_dqid_t) ip->i_d.di_uid, in xfs_qm_internalqcheck_adjust()
1367 (xfs_dqid_t) ip->i_d.di_gid, in xfs_qm_internalqcheck_adjust()

12