Lines Matching refs:latest_node
1131 struct jffs2_raw_inode *latest_node) in jffs2_do_read_inode_internal() argument
1194 latest_node->mode = cpu_to_jemode(S_IFDIR|S_IRUGO|S_IWUSR|S_IXUGO); in jffs2_do_read_inode_internal()
1195 latest_node->version = cpu_to_je32(0); in jffs2_do_read_inode_internal()
1196 latest_node->atime = latest_node->ctime = latest_node->mtime = cpu_to_je32(0); in jffs2_do_read_inode_internal()
1197 latest_node->isize = cpu_to_je32(0); in jffs2_do_read_inode_internal()
1198 latest_node->gid = cpu_to_je16(0); in jffs2_do_read_inode_internal()
1199 latest_node->uid = cpu_to_je16(0); in jffs2_do_read_inode_internal()
1205 …ffs2_flash_read(c, ref_offset(rii.latest_ref), sizeof(*latest_node), &retlen, (void *)latest_node); in jffs2_do_read_inode_internal()
1206 if (ret || retlen != sizeof(*latest_node)) { in jffs2_do_read_inode_internal()
1208 ret, retlen, sizeof(*latest_node)); in jffs2_do_read_inode_internal()
1213 crc = crc32(0, latest_node, sizeof(*latest_node)-8); in jffs2_do_read_inode_internal()
1214 if (crc != je32_to_cpu(latest_node->node_crc)) { in jffs2_do_read_inode_internal()
1220 switch(jemode_to_cpu(latest_node->mode) & S_IFMT) { in jffs2_do_read_inode_internal()
1222 if (rii.mctime_ver > je32_to_cpu(latest_node->version)) { in jffs2_do_read_inode_internal()
1225 latest_node->ctime = latest_node->mtime = cpu_to_je32(rii.latest_mctime); in jffs2_do_read_inode_internal()
1232 new_size = jffs2_truncate_fragtree(c, &f->fragtree, je32_to_cpu(latest_node->isize)); in jffs2_do_read_inode_internal()
1233 if (new_size != je32_to_cpu(latest_node->isize)) { in jffs2_do_read_inode_internal()
1235 f->inocache->ino, je32_to_cpu(latest_node->isize), new_size); in jffs2_do_read_inode_internal()
1236 latest_node->isize = cpu_to_je32(new_size); in jffs2_do_read_inode_internal()
1245 if (!je32_to_cpu(latest_node->isize)) in jffs2_do_read_inode_internal()
1246 latest_node->isize = latest_node->dsize; in jffs2_do_read_inode_internal()
1252 uint32_t csize = je32_to_cpu(latest_node->csize); in jffs2_do_read_inode_internal()
1261 ret = jffs2_flash_read(c, ref_offset(rii.latest_ref) + sizeof(*latest_node), in jffs2_do_read_inode_internal()
1284 f->inocache->ino, jemode_to_cpu(latest_node->mode)); in jffs2_do_read_inode_internal()
1289 f->inocache->ino, jemode_to_cpu(latest_node->mode)); in jffs2_do_read_inode_internal()
1295 f->inocache->ino, jemode_to_cpu(latest_node->mode)); in jffs2_do_read_inode_internal()
1313 uint32_t ino, struct jffs2_raw_inode *latest_node) in jffs2_do_read_inode() argument
1373 return jffs2_do_read_inode_internal(c, f, latest_node); in jffs2_do_read_inode()