Lines Matching refs:dip

3034 static int copy_from_dinode(struct dinode * dip, struct inode *ip)  in copy_from_dinode()  argument
3039 jfs_ip->fileset = le32_to_cpu(dip->di_fileset); in copy_from_dinode()
3040 jfs_ip->mode2 = le32_to_cpu(dip->di_mode); in copy_from_dinode()
3043 ip->i_mode = le32_to_cpu(dip->di_mode) & 0xffff; in copy_from_dinode()
3056 set_nlink(ip, le32_to_cpu(dip->di_nlink)); in copy_from_dinode()
3058 jfs_ip->saved_uid = make_kuid(&init_user_ns, le32_to_cpu(dip->di_uid)); in copy_from_dinode()
3065 jfs_ip->saved_gid = make_kgid(&init_user_ns, le32_to_cpu(dip->di_gid)); in copy_from_dinode()
3072 ip->i_size = le64_to_cpu(dip->di_size); in copy_from_dinode()
3073 inode_set_atime(ip, le32_to_cpu(dip->di_atime.tv_sec), in copy_from_dinode()
3074 le32_to_cpu(dip->di_atime.tv_nsec)); in copy_from_dinode()
3075 inode_set_mtime(ip, le32_to_cpu(dip->di_mtime.tv_sec), in copy_from_dinode()
3076 le32_to_cpu(dip->di_mtime.tv_nsec)); in copy_from_dinode()
3077 inode_set_ctime(ip, le32_to_cpu(dip->di_ctime.tv_sec), in copy_from_dinode()
3078 le32_to_cpu(dip->di_ctime.tv_nsec)); in copy_from_dinode()
3079 ip->i_blocks = LBLK2PBLK(ip->i_sb, le64_to_cpu(dip->di_nblocks)); in copy_from_dinode()
3080 ip->i_generation = le32_to_cpu(dip->di_gen); in copy_from_dinode()
3082 jfs_ip->ixpxd = dip->di_ixpxd; /* in-memory pxd's are little-endian */ in copy_from_dinode()
3083 jfs_ip->acl = dip->di_acl; /* as are dxd's */ in copy_from_dinode()
3084 jfs_ip->ea = dip->di_ea; in copy_from_dinode()
3085 jfs_ip->next_index = le32_to_cpu(dip->di_next_index); in copy_from_dinode()
3086 jfs_ip->otime = le32_to_cpu(dip->di_otime.tv_sec); in copy_from_dinode()
3087 jfs_ip->acltype = le32_to_cpu(dip->di_acltype); in copy_from_dinode()
3090 jfs_ip->dev = le32_to_cpu(dip->di_rdev); in copy_from_dinode()
3095 memcpy(&jfs_ip->u.dir, &dip->u._dir, 384); in copy_from_dinode()
3097 memcpy(&jfs_ip->i_xtroot, &dip->di_xtroot, 288); in copy_from_dinode()
3099 memcpy(&jfs_ip->i_inline_ea, &dip->di_inlineea, 128); in copy_from_dinode()
3118 static void copy_to_dinode(struct dinode * dip, struct inode *ip) in copy_to_dinode() argument
3123 dip->di_fileset = cpu_to_le32(jfs_ip->fileset); in copy_to_dinode()
3124 dip->di_inostamp = cpu_to_le32(sbi->inostamp); in copy_to_dinode()
3125 dip->di_number = cpu_to_le32(ip->i_ino); in copy_to_dinode()
3126 dip->di_gen = cpu_to_le32(ip->i_generation); in copy_to_dinode()
3127 dip->di_size = cpu_to_le64(ip->i_size); in copy_to_dinode()
3128 dip->di_nblocks = cpu_to_le64(PBLK2LBLK(ip->i_sb, ip->i_blocks)); in copy_to_dinode()
3129 dip->di_nlink = cpu_to_le32(ip->i_nlink); in copy_to_dinode()
3131 dip->di_uid = cpu_to_le32(i_uid_read(ip)); in copy_to_dinode()
3133 dip->di_uid =cpu_to_le32(from_kuid(&init_user_ns, in copy_to_dinode()
3136 dip->di_gid = cpu_to_le32(i_gid_read(ip)); in copy_to_dinode()
3138 dip->di_gid = cpu_to_le32(from_kgid(&init_user_ns, in copy_to_dinode()
3145 dip->di_mode = cpu_to_le32((jfs_ip->mode2 & 0xffff0000) | in copy_to_dinode()
3148 dip->di_mode = cpu_to_le32(jfs_ip->mode2); in copy_to_dinode()
3150 dip->di_atime.tv_sec = cpu_to_le32(inode_get_atime_sec(ip)); in copy_to_dinode()
3151 dip->di_atime.tv_nsec = cpu_to_le32(inode_get_atime_nsec(ip)); in copy_to_dinode()
3152 dip->di_ctime.tv_sec = cpu_to_le32(inode_get_ctime_sec(ip)); in copy_to_dinode()
3153 dip->di_ctime.tv_nsec = cpu_to_le32(inode_get_ctime_nsec(ip)); in copy_to_dinode()
3154 dip->di_mtime.tv_sec = cpu_to_le32(inode_get_mtime_sec(ip)); in copy_to_dinode()
3155 dip->di_mtime.tv_nsec = cpu_to_le32(inode_get_mtime_nsec(ip)); in copy_to_dinode()
3156 dip->di_ixpxd = jfs_ip->ixpxd; /* in-memory pxd's are little-endian */ in copy_to_dinode()
3157 dip->di_acl = jfs_ip->acl; /* as are dxd's */ in copy_to_dinode()
3158 dip->di_ea = jfs_ip->ea; in copy_to_dinode()
3159 dip->di_next_index = cpu_to_le32(jfs_ip->next_index); in copy_to_dinode()
3160 dip->di_otime.tv_sec = cpu_to_le32(jfs_ip->otime); in copy_to_dinode()
3161 dip->di_otime.tv_nsec = 0; in copy_to_dinode()
3162 dip->di_acltype = cpu_to_le32(jfs_ip->acltype); in copy_to_dinode()
3164 dip->di_rdev = cpu_to_le32(jfs_ip->dev); in copy_to_dinode()