/linux-4.19.296/fs/xfs/scrub/ |
D | inode.c | 81 struct xfs_dinode *dip, in xchk_inode_extsize() argument 88 fa = xfs_inode_validate_extsize(sc->mp, be32_to_cpu(dip->di_extsize), in xchk_inode_extsize() 103 struct xfs_dinode *dip, in xchk_inode_cowextsize() argument 112 be32_to_cpu(dip->di_cowextsize), mode, flags, in xchk_inode_cowextsize() 122 struct xfs_dinode *dip, in xchk_inode_flags() argument 167 struct xfs_dinode *dip, in xchk_inode_flags2() argument 211 struct xfs_dinode *dip, in xchk_dinode() argument 222 flags = be16_to_cpu(dip->di_flags); in xchk_dinode() 223 if (dip->di_version >= 3) in xchk_dinode() 224 flags2 = be64_to_cpu(dip->di_flags2); in xchk_dinode() [all …]
|
D | ialloc.c | 139 struct xfs_dinode *dip; in xchk_iallocbt_check_cluster_freemask() local 149 dip = xfs_buf_offset(bp, clusterino * mp->m_sb.sb_inodesize); in xchk_iallocbt_check_cluster_freemask() 150 if (be16_to_cpu(dip->di_magic) != XFS_DINODE_MAGIC || in xchk_iallocbt_check_cluster_freemask() 151 (dip->di_version >= 3 && in xchk_iallocbt_check_cluster_freemask() 152 be64_to_cpu(dip->di_ino) != fsino + clusterino)) { in xchk_iallocbt_check_cluster_freemask() 163 freemask_ok = inode_is_free ^ !!(dip->di_mode); in xchk_iallocbt_check_cluster_freemask() 192 struct xfs_dinode *dip; in xchk_iallocbt_check_freemask() local 247 &dip, &bp, 0, 0); in xchk_iallocbt_check_freemask()
|
/linux-4.19.296/fs/xfs/libxfs/ |
D | xfs_inode_buf.c | 37 xfs_dinode_t *dip; in xfs_inobp_check() local 42 dip = xfs_buf_offset(bp, i * mp->m_sb.sb_inodesize); in xfs_inobp_check() 43 if (!dip->di_next_unlinked) { in xfs_inobp_check() 95 xfs_dinode_t *dip; in xfs_inode_buf_verify() local 98 dip = xfs_buf_offset(bp, (i << mp->m_sb.sb_inodelog)); in xfs_inode_buf_verify() 99 unlinked_ino = be32_to_cpu(dip->di_next_unlinked); in xfs_inode_buf_verify() 100 di_ok = dip->di_magic == cpu_to_be16(XFS_DINODE_MAGIC) && in xfs_inode_buf_verify() 101 xfs_dinode_good_version(mp, dip->di_version) && in xfs_inode_buf_verify() 116 be16_to_cpu(dip->di_magic)); in xfs_inode_buf_verify() 119 __func__, dip, sizeof(*dip), in xfs_inode_buf_verify() [all …]
|
D | xfs_inode_fork.c | 47 struct xfs_dinode *dip) in xfs_iformat_fork() argument 61 inode->i_rdev = xfs_to_linux_dev_t(xfs_dinode_get_rdev(dip)); in xfs_iformat_fork() 67 switch (dip->di_format) { in xfs_iformat_fork() 69 di_size = be64_to_cpu(dip->di_size); in xfs_iformat_fork() 71 error = xfs_iformat_local(ip, dip, XFS_DATA_FORK, size); in xfs_iformat_fork() 74 error = xfs_iformat_extents(ip, dip, XFS_DATA_FORK); in xfs_iformat_fork() 77 error = xfs_iformat_btree(ip, dip, XFS_DATA_FORK); in xfs_iformat_fork() 95 if (!XFS_DFORK_Q(dip)) in xfs_iformat_fork() 101 switch (dip->di_aformat) { in xfs_iformat_fork() 103 atp = (xfs_attr_shortform_t *)XFS_DFORK_APTR(dip); in xfs_iformat_fork() [all …]
|
D | xfs_format.h | 949 #define XFS_DFORK_Q(dip) ((dip)->di_forkoff != 0) argument 950 #define XFS_DFORK_BOFF(dip) ((int)((dip)->di_forkoff << 3)) argument 952 #define XFS_DFORK_DSIZE(dip,mp) \ argument 953 (XFS_DFORK_Q(dip) ? \ 954 XFS_DFORK_BOFF(dip) : \ 955 XFS_LITINO(mp, (dip)->di_version)) 956 #define XFS_DFORK_ASIZE(dip,mp) \ argument 957 (XFS_DFORK_Q(dip) ? \ 958 XFS_LITINO(mp, (dip)->di_version) - XFS_DFORK_BOFF(dip) : \ 960 #define XFS_DFORK_SIZE(dip,mp,w) \ argument [all …]
|
D | xfs_inode_buf.h | 74 struct xfs_dinode *dip);
|
/linux-4.19.296/fs/jfs/ |
D | namei.c | 75 static int jfs_create(struct inode *dip, struct dentry *dentry, umode_t mode, in jfs_create() argument 87 jfs_info("jfs_create: dip:0x%p name:%pd", dip, dentry); in jfs_create() 89 rc = dquot_initialize(dip); in jfs_create() 105 ip = ialloc(dip, mode); in jfs_create() 111 tid = txBegin(dip->i_sb, 0); in jfs_create() 113 mutex_lock_nested(&JFS_IP(dip)->commit_mutex, COMMIT_MUTEX_PARENT); in jfs_create() 116 rc = jfs_init_acl(tid, ip, dip); in jfs_create() 120 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_create() 126 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create() 137 iplist[0] = dip; in jfs_create() [all …]
|
D | jfs_imap.c | 3040 static int copy_from_dinode(struct dinode * dip, struct inode *ip) in copy_from_dinode() argument 3045 jfs_ip->fileset = le32_to_cpu(dip->di_fileset); in copy_from_dinode() 3046 jfs_ip->mode2 = le32_to_cpu(dip->di_mode); in copy_from_dinode() 3049 ip->i_mode = le32_to_cpu(dip->di_mode) & 0xffff; in copy_from_dinode() 3062 set_nlink(ip, le32_to_cpu(dip->di_nlink)); in copy_from_dinode() 3064 jfs_ip->saved_uid = make_kuid(&init_user_ns, le32_to_cpu(dip->di_uid)); in copy_from_dinode() 3071 jfs_ip->saved_gid = make_kgid(&init_user_ns, le32_to_cpu(dip->di_gid)); in copy_from_dinode() 3078 ip->i_size = le64_to_cpu(dip->di_size); in copy_from_dinode() 3079 ip->i_atime.tv_sec = le32_to_cpu(dip->di_atime.tv_sec); in copy_from_dinode() 3080 ip->i_atime.tv_nsec = le32_to_cpu(dip->di_atime.tv_nsec); in copy_from_dinode() [all …]
|
/linux-4.19.296/fs/gfs2/ |
D | dir.c | 610 static int dirent_check_reclen(struct gfs2_inode *dip, in dirent_check_reclen() argument 624 gfs2_consist_inode(dip); in dirent_check_reclen() 637 static int dirent_next(struct gfs2_inode *dip, struct buffer_head *bh, in dirent_next() argument 644 ret = dirent_check_reclen(dip, cur, bh_end); in dirent_next() 649 ret = dirent_check_reclen(dip, tmp, bh_end); in dirent_next() 655 gfs2_consist_inode(dip); in dirent_next() 672 static void dirent_del(struct gfs2_inode *dip, struct buffer_head *bh, in dirent_del() argument 678 gfs2_consist_inode(dip); in dirent_del() 682 gfs2_trans_add_meta(dip->i_gl, bh); in dirent_del() 700 gfs2_consist_inode(dip); in dirent_del() [all …]
|
D | inode.c | 247 struct inode *gfs2_lookup_simple(struct inode *dip, const char *name) in gfs2_lookup_simple() argument 252 inode = gfs2_lookupi(dip, &qstr, 1); in gfs2_lookup_simple() 284 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_lookupi() local 300 if (gfs2_glock_is_locked_by_me(dip->i_gl) == NULL) { in gfs2_lookupi() 301 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_lookupi() 332 static int create_ok(struct gfs2_inode *dip, const struct qstr *name, in create_ok() argument 337 error = gfs2_permission(&dip->i_inode, MAY_WRITE | MAY_EXEC); in create_ok() 342 if (!dip->i_inode.i_nlink) in create_ok() 345 if (dip->i_entries == (u32)-1) in create_ok() 347 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) in create_ok() [all …]
|
D | dentry.c | 40 struct gfs2_inode *dip; in gfs2_drevalidate() local 52 dip = GFS2_I(d_inode(parent)); in gfs2_drevalidate() 64 had_lock = (gfs2_glock_is_locked_by_me(dip->i_gl) != NULL); in gfs2_drevalidate() 66 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_drevalidate()
|
D | dir.h | 42 extern int gfs2_dir_del(struct gfs2_inode *dip, const struct dentry *dentry); 45 extern int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename, 48 extern int gfs2_dir_exhash_dealloc(struct gfs2_inode *dip);
|
D | export.c | 93 struct gfs2_inode *dip, *ip; in gfs2_get_name() local 108 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()
|
D | inode.h | 109 extern struct inode *gfs2_lookup_simple(struct inode *dip, const char *name);
|
D | file.c | 108 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_readdir() local 112 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_readdir()
|
D | ops_fstype.c | 543 struct gfs2_inode *dip = GFS2_I(sdp->sd_jindex); in gfs2_jindex_hold() local 554 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, ji_gh); in gfs2_jindex_hold()
|
/linux-4.19.296/fs/freevxfs/ |
D | vxfs_inode.c | 101 struct vxfs_inode_info *vip, struct vxfs_dinode *dip) in dip2vip_cpy() argument 105 vip->vii_mode = fs32_to_cpu(sbi, dip->vdi_mode); in dip2vip_cpy() 106 vip->vii_nlink = fs32_to_cpu(sbi, dip->vdi_nlink); in dip2vip_cpy() 107 vip->vii_uid = fs32_to_cpu(sbi, dip->vdi_uid); in dip2vip_cpy() 108 vip->vii_gid = fs32_to_cpu(sbi, dip->vdi_gid); in dip2vip_cpy() 109 vip->vii_size = fs64_to_cpu(sbi, dip->vdi_size); in dip2vip_cpy() 110 vip->vii_atime = fs32_to_cpu(sbi, dip->vdi_atime); in dip2vip_cpy() 111 vip->vii_autime = fs32_to_cpu(sbi, dip->vdi_autime); in dip2vip_cpy() 112 vip->vii_mtime = fs32_to_cpu(sbi, dip->vdi_mtime); in dip2vip_cpy() 113 vip->vii_mutime = fs32_to_cpu(sbi, dip->vdi_mutime); in dip2vip_cpy() [all …]
|
D | vxfs_lookup.c | 156 vxfs_inode_by_name(struct inode *dip, struct dentry *dp) in vxfs_inode_by_name() argument 162 de = vxfs_find_entry(dip, dp, &pp); in vxfs_inode_by_name() 164 ino = fs32_to_cpu(VXFS_SBI(dip->i_sb), de->d_ino); in vxfs_inode_by_name() 187 vxfs_lookup(struct inode *dip, struct dentry *dp, unsigned int flags) in vxfs_lookup() argument 195 ino = vxfs_inode_by_name(dip, dp); in vxfs_lookup() 197 ip = vxfs_iget(dip->i_sb, ino); in vxfs_lookup()
|
/linux-4.19.296/fs/xfs/ |
D | xfs_inode.c | 1942 xfs_dinode_t *dip; in xfs_iunlink() local 1979 error = xfs_imap_to_bp(mp, tp, &ip->i_imap, &dip, &ibp, in xfs_iunlink() 1984 ASSERT(dip->di_next_unlinked == cpu_to_be32(NULLAGINO)); in xfs_iunlink() 1985 dip->di_next_unlinked = agi->agi_unlinked[bucket_index]; in xfs_iunlink() 1990 xfs_dinode_calc_crc(mp, dip); in xfs_iunlink() 2021 xfs_dinode_t *dip; in xfs_iunlink_remove() local 2069 error = xfs_imap_to_bp(mp, tp, &ip->i_imap, &dip, &ibp, in xfs_iunlink_remove() 2076 next_agino = be32_to_cpu(dip->di_next_unlinked); in xfs_iunlink_remove() 2079 dip->di_next_unlinked = cpu_to_be32(NULLAGINO); in xfs_iunlink_remove() 2084 xfs_dinode_calc_crc(mp, dip); in xfs_iunlink_remove() [all …]
|
D | xfs_log_recover.c | 2940 struct xfs_dinode *dip, in xfs_recover_inode_owner_change() argument 2954 xfs_inode_from_disk(ip, dip); in xfs_recover_inode_owner_change() 2957 error = xfs_iformat_fork(ip, dip); in xfs_recover_inode_owner_change() 2997 xfs_dinode_t *dip; in xlog_recover_inode_pass2() local 3042 dip = xfs_buf_offset(bp, in_f->ilf_boffset); in xlog_recover_inode_pass2() 3048 if (unlikely(dip->di_magic != cpu_to_be16(XFS_DINODE_MAGIC))) { in xlog_recover_inode_pass2() 3051 __func__, dip, bp, in_f->ilf_ino); in xlog_recover_inode_pass2() 3075 if (dip->di_version >= 3) { in xlog_recover_inode_pass2() 3076 xfs_lsn_t lsn = be64_to_cpu(dip->di_lsn); in xlog_recover_inode_pass2() 3094 ldip->di_flushiter < be16_to_cpu(dip->di_flushiter)) { in xlog_recover_inode_pass2() [all …]
|
/linux-4.19.296/fs/btrfs/ |
D | inode.c | 8215 struct btrfs_dio_private *dip = bio->bi_private; in btrfs_endio_direct_read() local 8216 struct inode *inode = dip->inode; in btrfs_endio_direct_read() 8221 if (dip->flags & BTRFS_DIO_ORIG_BIO_SUBMITTED) in btrfs_endio_direct_read() 8224 unlock_extent(&BTRFS_I(inode)->io_tree, dip->logical_offset, in btrfs_endio_direct_read() 8225 dip->logical_offset + dip->bytes - 1); in btrfs_endio_direct_read() 8226 dio_bio = dip->dio_bio; in btrfs_endio_direct_read() 8228 kfree(dip); in btrfs_endio_direct_read() 8288 struct btrfs_dio_private *dip = bio->bi_private; in btrfs_endio_direct_write() local 8289 struct bio *dio_bio = dip->dio_bio; in btrfs_endio_direct_write() 8291 __endio_write_update_ordered(dip->inode, dip->logical_offset, in btrfs_endio_direct_write() [all …]
|
/linux-4.19.296/include/linux/mlx5/ |
D | mlx5_ifc_fpga.h | 546 __be32 dip[4]; member
|