Lines Matching refs:dip
3061 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()
3102 ip->i_mtime.tv_sec = le32_to_cpu(dip->di_mtime.tv_sec); in copy_from_dinode()
3103 ip->i_mtime.tv_nsec = le32_to_cpu(dip->di_mtime.tv_nsec); in copy_from_dinode()
3104 ip->i_ctime.tv_sec = le32_to_cpu(dip->di_ctime.tv_sec); in copy_from_dinode()
3105 ip->i_ctime.tv_nsec = le32_to_cpu(dip->di_ctime.tv_nsec); in copy_from_dinode()
3106 ip->i_blocks = LBLK2PBLK(ip->i_sb, le64_to_cpu(dip->di_nblocks)); in copy_from_dinode()
3107 ip->i_generation = le32_to_cpu(dip->di_gen); in copy_from_dinode()
3109 jfs_ip->ixpxd = dip->di_ixpxd; /* in-memory pxd's are little-endian */ in copy_from_dinode()
3110 jfs_ip->acl = dip->di_acl; /* as are dxd's */ in copy_from_dinode()
3111 jfs_ip->ea = dip->di_ea; in copy_from_dinode()
3112 jfs_ip->next_index = le32_to_cpu(dip->di_next_index); in copy_from_dinode()
3113 jfs_ip->otime = le32_to_cpu(dip->di_otime.tv_sec); in copy_from_dinode()
3114 jfs_ip->acltype = le32_to_cpu(dip->di_acltype); in copy_from_dinode()
3117 jfs_ip->dev = le32_to_cpu(dip->di_rdev); in copy_from_dinode()
3122 memcpy(&jfs_ip->i_dirtable, &dip->di_dirtable, 384); in copy_from_dinode()
3124 memcpy(&jfs_ip->i_xtroot, &dip->di_xtroot, 288); in copy_from_dinode()
3126 memcpy(&jfs_ip->i_inline_ea, &dip->di_inlineea, 128); in copy_from_dinode()
3145 static void copy_to_dinode(struct dinode * dip, struct inode *ip) in copy_to_dinode() argument
3150 dip->di_fileset = cpu_to_le32(jfs_ip->fileset); in copy_to_dinode()
3151 dip->di_inostamp = cpu_to_le32(sbi->inostamp); in copy_to_dinode()
3152 dip->di_number = cpu_to_le32(ip->i_ino); in copy_to_dinode()
3153 dip->di_gen = cpu_to_le32(ip->i_generation); in copy_to_dinode()
3154 dip->di_size = cpu_to_le64(ip->i_size); in copy_to_dinode()
3155 dip->di_nblocks = cpu_to_le64(PBLK2LBLK(ip->i_sb, ip->i_blocks)); in copy_to_dinode()
3156 dip->di_nlink = cpu_to_le32(ip->i_nlink); in copy_to_dinode()
3158 dip->di_uid = cpu_to_le32(ip->i_uid); in copy_to_dinode()
3160 dip->di_uid = cpu_to_le32(jfs_ip->saved_uid); in copy_to_dinode()
3162 dip->di_gid = cpu_to_le32(ip->i_gid); in copy_to_dinode()
3164 dip->di_gid = cpu_to_le32(jfs_ip->saved_gid); in copy_to_dinode()
3171 dip->di_mode = cpu_to_le32((jfs_ip->mode2 & 0xffff0000) | in copy_to_dinode()
3174 dip->di_mode = cpu_to_le32(jfs_ip->mode2); in copy_to_dinode()
3176 dip->di_atime.tv_sec = cpu_to_le32(ip->i_atime.tv_sec); in copy_to_dinode()
3177 dip->di_atime.tv_nsec = cpu_to_le32(ip->i_atime.tv_nsec); in copy_to_dinode()
3178 dip->di_ctime.tv_sec = cpu_to_le32(ip->i_ctime.tv_sec); in copy_to_dinode()
3179 dip->di_ctime.tv_nsec = cpu_to_le32(ip->i_ctime.tv_nsec); in copy_to_dinode()
3180 dip->di_mtime.tv_sec = cpu_to_le32(ip->i_mtime.tv_sec); in copy_to_dinode()
3181 dip->di_mtime.tv_nsec = cpu_to_le32(ip->i_mtime.tv_nsec); in copy_to_dinode()
3182 dip->di_ixpxd = jfs_ip->ixpxd; /* in-memory pxd's are little-endian */ in copy_to_dinode()
3183 dip->di_acl = jfs_ip->acl; /* as are dxd's */ in copy_to_dinode()
3184 dip->di_ea = jfs_ip->ea; in copy_to_dinode()
3185 dip->di_next_index = cpu_to_le32(jfs_ip->next_index); in copy_to_dinode()
3186 dip->di_otime.tv_sec = cpu_to_le32(jfs_ip->otime); in copy_to_dinode()
3187 dip->di_otime.tv_nsec = 0; in copy_to_dinode()
3188 dip->di_acltype = cpu_to_le32(jfs_ip->acltype); in copy_to_dinode()
3190 dip->di_rdev = cpu_to_le32(jfs_ip->dev); in copy_to_dinode()