Lines Matching refs:latest_node
1147 struct jffs2_raw_inode *latest_node) in jffs2_do_read_inode_internal() argument
1210 latest_node->mode = cpu_to_jemode(S_IFDIR|S_IRUGO|S_IWUSR|S_IXUGO); in jffs2_do_read_inode_internal()
1211 latest_node->version = cpu_to_je32(0); in jffs2_do_read_inode_internal()
1212 latest_node->atime = latest_node->ctime = latest_node->mtime = cpu_to_je32(0); in jffs2_do_read_inode_internal()
1213 latest_node->isize = cpu_to_je32(0); in jffs2_do_read_inode_internal()
1214 latest_node->gid = cpu_to_je16(0); in jffs2_do_read_inode_internal()
1215 latest_node->uid = cpu_to_je16(0); in jffs2_do_read_inode_internal()
1221 …ffs2_flash_read(c, ref_offset(rii.latest_ref), sizeof(*latest_node), &retlen, (void *)latest_node); in jffs2_do_read_inode_internal()
1222 if (ret || retlen != sizeof(*latest_node)) { in jffs2_do_read_inode_internal()
1224 ret, retlen, sizeof(*latest_node)); in jffs2_do_read_inode_internal()
1229 crc = crc32(0, latest_node, sizeof(*latest_node)-8); in jffs2_do_read_inode_internal()
1230 if (crc != je32_to_cpu(latest_node->node_crc)) { in jffs2_do_read_inode_internal()
1236 switch(jemode_to_cpu(latest_node->mode) & S_IFMT) { in jffs2_do_read_inode_internal()
1238 if (rii.mctime_ver > je32_to_cpu(latest_node->version)) { in jffs2_do_read_inode_internal()
1241 latest_node->ctime = latest_node->mtime = cpu_to_je32(rii.latest_mctime); in jffs2_do_read_inode_internal()
1248 new_size = jffs2_truncate_fragtree(c, &f->fragtree, je32_to_cpu(latest_node->isize)); in jffs2_do_read_inode_internal()
1249 if (new_size != je32_to_cpu(latest_node->isize)) { in jffs2_do_read_inode_internal()
1251 f->inocache->ino, je32_to_cpu(latest_node->isize), new_size); in jffs2_do_read_inode_internal()
1252 latest_node->isize = cpu_to_je32(new_size); in jffs2_do_read_inode_internal()
1261 if (!je32_to_cpu(latest_node->isize)) in jffs2_do_read_inode_internal()
1262 latest_node->isize = latest_node->dsize; in jffs2_do_read_inode_internal()
1268 uint32_t csize = je32_to_cpu(latest_node->csize); in jffs2_do_read_inode_internal()
1277 ret = jffs2_flash_read(c, ref_offset(rii.latest_ref) + sizeof(*latest_node), in jffs2_do_read_inode_internal()
1300 f->inocache->ino, jemode_to_cpu(latest_node->mode)); in jffs2_do_read_inode_internal()
1305 f->inocache->ino, jemode_to_cpu(latest_node->mode)); in jffs2_do_read_inode_internal()
1311 f->inocache->ino, jemode_to_cpu(latest_node->mode)); in jffs2_do_read_inode_internal()
1329 uint32_t ino, struct jffs2_raw_inode *latest_node) in jffs2_do_read_inode() argument
1389 return jffs2_do_read_inode_internal(c, f, latest_node); in jffs2_do_read_inode()