• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jffs2/

Lines Matching defs:latest_node

1140 					struct jffs2_raw_inode *latest_node)
1202 latest_node->mode = cpu_to_jemode(S_IFDIR|S_IRUGO|S_IWUSR|S_IXUGO);
1203 latest_node->version = cpu_to_je32(0);
1204 latest_node->atime = latest_node->ctime = latest_node->mtime = cpu_to_je32(0);
1205 latest_node->isize = cpu_to_je32(0);
1206 latest_node->gid = cpu_to_je16(0);
1207 latest_node->uid = cpu_to_je16(0);
1213 ret = jffs2_flash_read(c, ref_offset(rii.latest_ref), sizeof(*latest_node), &retlen, (void *)latest_node);
1214 if (ret || retlen != sizeof(*latest_node)) {
1216 ret, retlen, sizeof(*latest_node));
1222 crc = crc32(0, latest_node, sizeof(*latest_node)-8);
1223 if (crc != je32_to_cpu(latest_node->node_crc)) {
1231 switch(jemode_to_cpu(latest_node->mode) & S_IFMT) {
1233 if (rii.mctime_ver > je32_to_cpu(latest_node->version)) {
1234 /* The times in the latest_node are actually older than
1236 latest_node->ctime = latest_node->mtime = cpu_to_je32(rii.latest_mctime);
1243 new_size = jffs2_truncate_fragtree(c, &f->fragtree, je32_to_cpu(latest_node->isize));
1244 if (new_size != je32_to_cpu(latest_node->isize)) {
1246 f->inocache->ino, je32_to_cpu(latest_node->isize), new_size);
1247 latest_node->isize = cpu_to_je32(new_size);
1252 if (!je32_to_cpu(latest_node->isize))
1253 latest_node->isize = latest_node->dsize;
1259 f->target = kmalloc(je32_to_cpu(latest_node->csize) + 1, GFP_KERNEL);
1261 JFFS2_ERROR("can't allocate %d bytes of memory for the symlink target path cache\n", je32_to_cpu(latest_node->csize));
1267 ret = jffs2_flash_read(c, ref_offset(rii.latest_ref) + sizeof(*latest_node),
1268 je32_to_cpu(latest_node->csize), &retlen, (char *)f->target);
1270 if (ret || retlen != je32_to_cpu(latest_node->csize)) {
1271 if (retlen != je32_to_cpu(latest_node->csize))
1280 f->target[je32_to_cpu(latest_node->csize)] = '\0';
1292 f->inocache->ino, jemode_to_cpu(latest_node->mode));
1299 f->inocache->ino, jemode_to_cpu(latest_node->mode));
1307 f->inocache->ino, jemode_to_cpu(latest_node->mode));
1326 uint32_t ino, struct jffs2_raw_inode *latest_node)
1386 return jffs2_do_read_inode_internal(c, f, latest_node);