Home
last modified time | relevance | path

Searched refs:dip (Results 1 – 24 of 24) sorted by relevance

/fs/xfs/
Dxfs_dinode.h113 #define XFS_DFORK_Q(dip) ((dip)->di_forkoff != 0) argument
114 #define XFS_DFORK_BOFF(dip) ((int)((dip)->di_forkoff << 3)) argument
116 #define XFS_DFORK_DSIZE(dip,mp) \ argument
117 (XFS_DFORK_Q(dip) ? \
118 XFS_DFORK_BOFF(dip) : \
120 #define XFS_DFORK_ASIZE(dip,mp) \ argument
121 (XFS_DFORK_Q(dip) ? \
122 XFS_LITINO(mp) - XFS_DFORK_BOFF(dip) : \
124 #define XFS_DFORK_SIZE(dip,mp,w) \ argument
126 XFS_DFORK_DSIZE(dip, mp) : \
[all …]
Dxfs_inode.c110 xfs_dinode_t *dip; in xfs_inobp_check() local
115 dip = (xfs_dinode_t *)xfs_buf_offset(bp, in xfs_inobp_check()
117 if (!dip->di_next_unlinked) { in xfs_inobp_check()
121 ASSERT(dip->di_next_unlinked); in xfs_inobp_check()
172 xfs_dinode_t *dip; in xfs_imap_to_bp() local
174 dip = (xfs_dinode_t *)xfs_buf_offset(bp, in xfs_imap_to_bp()
176 di_ok = be16_to_cpu(dip->di_magic) == XFS_DINODE_MAGIC && in xfs_imap_to_bp()
177 XFS_DINODE_GOOD_VERSION(dip->di_version); in xfs_imap_to_bp()
186 XFS_ERRLEVEL_HIGH, mp, dip); in xfs_imap_to_bp()
193 be16_to_cpu(dip->di_magic)); in xfs_imap_to_bp()
[all …]
Dxfs_itable.c226 xfs_dinode_t *dip; /* dinode inode pointer */ in xfs_bulkstat_one_int() local
228 dip = (xfs_dinode_t *)dibuff; in xfs_bulkstat_one_int()
236 if (dip == NULL) { in xfs_bulkstat_one_int()
244 xfs_bulkstat_one_dinode(mp, ino, dip, buf); in xfs_bulkstat_one_int()
288 xfs_dinode_t *dip; in xfs_bulkstat_use_dinode() local
294 dip = (xfs_dinode_t *) in xfs_bulkstat_use_dinode()
303 if (be16_to_cpu(dip->di_magic) != XFS_DINODE_MAGIC || in xfs_bulkstat_use_dinode()
304 !XFS_DINODE_GOOD_VERSION(dip->di_version) || in xfs_bulkstat_use_dinode()
305 !dip->di_mode) in xfs_bulkstat_use_dinode()
308 *dipp = dip; in xfs_bulkstat_use_dinode()
[all …]
Dxfs_log_recover.c2269 xfs_dinode_t *dip; in xlog_recover_do_inode_trans() local
2318 dip = (xfs_dinode_t *)xfs_buf_offset(bp, in_f->ilf_boffset); in xlog_recover_do_inode_trans()
2324 if (unlikely(be16_to_cpu(dip->di_magic) != XFS_DINODE_MAGIC)) { in xlog_recover_do_inode_trans()
2328 dip, bp, ino); in xlog_recover_do_inode_trans()
2347 if (dicp->di_flushiter < be16_to_cpu(dip->di_flushiter)) { in xlog_recover_do_inode_trans()
2352 if (be16_to_cpu(dip->di_flushiter) == DI_MAX_FLUSH && in xlog_recover_do_inode_trans()
2372 item, dip, bp, ino); in xlog_recover_do_inode_trans()
2385 item, dip, bp, ino); in xlog_recover_do_inode_trans()
2396 item, dip, bp, ino, in xlog_recover_do_inode_trans()
2408 item, dip, bp, ino, dicp->di_forkoff); in xlog_recover_do_inode_trans()
[all …]
Dxfs_filestream.h119 int xfs_filestream_associate(struct xfs_inode *dip, struct xfs_inode *ip);
Dxfs_itable.h33 void *dip,
/fs/gfs2/
Ddir.c83 typedef int (*leaf_call_t) (struct gfs2_inode *dip, u32 index, u32 len,
541 static int dirent_first(struct gfs2_inode *dip, struct buffer_head *bh, in dirent_first() argument
547 if (gfs2_meta_check(GFS2_SB(&dip->i_inode), bh)) in dirent_first()
553 if (gfs2_metatype_check(GFS2_SB(&dip->i_inode), bh, GFS2_METATYPE_DI)) in dirent_first()
561 static int dirent_check_reclen(struct gfs2_inode *dip, in dirent_check_reclen() argument
575 gfs2_consist_inode(dip); in dirent_check_reclen()
588 static int dirent_next(struct gfs2_inode *dip, struct buffer_head *bh, in dirent_next() argument
595 ret = dirent_check_reclen(dip, cur, bh_end); in dirent_next()
600 ret = dirent_check_reclen(dip, tmp, bh_end); in dirent_next()
606 gfs2_consist_inode(dip); in dirent_next()
[all …]
Dinode.c447 struct inode *gfs2_lookup_simple(struct inode *dip, const char *name) in gfs2_lookup_simple() argument
452 inode = gfs2_lookupi(dip, &qstr, 1); in gfs2_lookup_simple()
484 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_lookupi() local
500 if (gfs2_glock_is_locked_by_me(dip->i_gl) == NULL) { in gfs2_lookupi()
501 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_lookupi()
666 static int create_ok(struct gfs2_inode *dip, const struct qstr *name, in create_ok() argument
671 error = gfs2_permission(&dip->i_inode, MAY_WRITE | MAY_EXEC); in create_ok()
676 if (!dip->i_inode.i_nlink) in create_ok()
679 error = gfs2_dir_check(&dip->i_inode, name, NULL); in create_ok()
690 if (dip->i_entries == (u32)-1) in create_ok()
[all …]
Dops_inode.c53 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_create() local
58 gfs2_holder_init(dip->i_gl, 0, 0, ghs); in gfs2_create()
64 if (dip->i_alloc->al_rgd) in gfs2_create()
65 gfs2_inplace_release(dip); in gfs2_create()
66 gfs2_quota_unlock(dip); in gfs2_create()
67 gfs2_alloc_put(dip); in gfs2_create()
148 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_link() local
159 gfs2_holder_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_link()
185 if (!dip->i_inode.i_nlink) in gfs2_link()
188 if (dip->i_entries == (u32)-1) in gfs2_link()
[all …]
Dops_dentry.c41 struct gfs2_inode *dip = GFS2_I(parent->d_inode); in gfs2_drevalidate() local
57 had_lock = (gfs2_glock_is_locked_by_me(dip->i_gl) != NULL); in gfs2_drevalidate()
59 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_drevalidate()
Ddir.h25 int gfs2_dir_del(struct gfs2_inode *dip, const struct qstr *filename);
28 int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename,
31 int gfs2_dir_exhash_dealloc(struct gfs2_inode *dip);
Dinode.h90 int gfs2_rmdiri(struct gfs2_inode *dip, const struct qstr *name,
92 int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name,
97 struct inode *gfs2_lookup_simple(struct inode *dip, const char *name);
Dacl.c198 int gfs2_acl_create(struct gfs2_inode *dip, struct gfs2_inode *ip) in gfs2_acl_create() argument
200 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode); in gfs2_acl_create()
214 error = acl_get(dip, ACL_DEFAULT, &acl, NULL, in gfs2_acl_create()
Dops_export.c95 struct gfs2_inode *dip, *ip; in gfs2_get_name() local
107 dip = GFS2_I(dir); in gfs2_get_name()
115 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_get_name()
Dacl.h35 int gfs2_acl_create(struct gfs2_inode *dip, struct gfs2_inode *ip);
Dops_file.c86 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_readdir() local
91 gfs2_holder_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_readdir()
Drgrp.c1427 u64 gfs2_alloc_di(struct gfs2_inode *dip, u64 *generation) in gfs2_alloc_di() argument
1429 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode); in gfs2_alloc_di()
1430 struct gfs2_alloc *al = dip->i_alloc; in gfs2_alloc_di()
Dops_fstype.c652 struct gfs2_inode *dip = GFS2_I(sdp->sd_jindex); in gfs2_jindex_hold() local
663 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, ji_gh); in gfs2_jindex_hold()
/fs/jfs/
Dnamei.c74 static int jfs_create(struct inode *dip, struct dentry *dentry, int mode, in jfs_create() argument
86 jfs_info("jfs_create: dip:0x%p name:%s", dip, dentry->d_name.name); in jfs_create()
100 ip = ialloc(dip, mode); in jfs_create()
106 tid = txBegin(dip->i_sb, 0); in jfs_create()
108 mutex_lock_nested(&JFS_IP(dip)->commit_mutex, COMMIT_MUTEX_PARENT); in jfs_create()
111 rc = jfs_init_acl(tid, ip, dip); in jfs_create()
115 rc = jfs_init_security(tid, ip, dip); in jfs_create()
121 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create()
132 iplist[0] = dip; in jfs_create()
145 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_create()
[all …]
Djfs_imap.c3061 static int copy_from_dinode(struct dinode * dip, struct inode *ip) in copy_from_dinode() argument
3066 jfs_ip->fileset = le32_to_cpu(dip->di_fileset); in copy_from_dinode()
3067 jfs_ip->mode2 = le32_to_cpu(dip->di_mode); in copy_from_dinode()
3070 ip->i_mode = le32_to_cpu(dip->di_mode) & 0xffff; in copy_from_dinode()
3083 ip->i_nlink = le32_to_cpu(dip->di_nlink); in copy_from_dinode()
3085 jfs_ip->saved_uid = le32_to_cpu(dip->di_uid); in copy_from_dinode()
3092 jfs_ip->saved_gid = le32_to_cpu(dip->di_gid); in copy_from_dinode()
3099 ip->i_size = le64_to_cpu(dip->di_size); in copy_from_dinode()
3100 ip->i_atime.tv_sec = le32_to_cpu(dip->di_atime.tv_sec); in copy_from_dinode()
3101 ip->i_atime.tv_nsec = le32_to_cpu(dip->di_atime.tv_nsec); in copy_from_dinode()
[all …]
/fs/freevxfs/
Dvxfs_inode.c99 struct vxfs_dinode *dip; in vxfs_blkiget() local
103 dip = (struct vxfs_dinode *)(bp->b_data + offset); in vxfs_blkiget()
104 memcpy(vip, dip, sizeof(*vip)); in vxfs_blkiget()
140 struct vxfs_dinode *dip; in __vxfs_iget() local
145 dip = (struct vxfs_dinode *)(kaddr + offset); in __vxfs_iget()
146 memcpy(vip, dip, sizeof(*vip)); in __vxfs_iget()
Dvxfs_lookup.c174 vxfs_inode_by_name(struct inode *dip, struct dentry *dp) in vxfs_inode_by_name() argument
180 de = vxfs_find_entry(dip, dp, &pp); in vxfs_inode_by_name()
205 vxfs_lookup(struct inode *dip, struct dentry *dp, struct nameidata *nd) in vxfs_lookup() argument
214 ino = vxfs_inode_by_name(dip, dp); in vxfs_lookup()
216 ip = vxfs_iget(dip->i_sb, ino); in vxfs_lookup()
/fs/xfs/quota/
Dxfs_qm_syscalls.c1345 void *dip, /* not used */ in xfs_qm_internalqcheck_adjust() argument
Dxfs_qm.c1683 void *dip, /* on-disk inode pointer (not used) */ in xfs_qm_dqusage_adjust() argument