Lines Matching refs:inocache

992 	dbg_readinode("ino #%u\n", f->inocache->ino);
1002 valid_ref = jffs2_first_valid_node(f->inocache->nodes);
1003 if (!valid_ref && f->inocache->ino != 1)
1004 JFFS2_WARNING("Eep. No valid nodes for ino #%u.\n", f->inocache->ino);
1133 f->inocache->ino, rii->highest_version, rii->latest_mctime,
1154 dbg_readinode("ino #%u pino/nlink is %d\n", f->inocache->ino,
1155 f->inocache->pino_nlink);
1163 JFFS2_ERROR("cannot read nodes for ino %u, returned error is %d\n", f->inocache->ino, ret);
1164 if (f->inocache->state == INO_STATE_READING)
1165 jffs2_set_inocache_state(c, f->inocache, INO_STATE_CHECKEDABSENT);
1172 f->inocache->ino, ret);
1173 if (f->inocache->state == INO_STATE_READING)
1174 jffs2_set_inocache_state(c, f->inocache, INO_STATE_CHECKEDABSENT);
1201 if (f->inocache->ino != 1) {
1202 JFFS2_WARNING("no data nodes found for ino #%u\n", f->inocache->ino);
1204 if (f->inocache->state == INO_STATE_READING)
1205 jffs2_set_inocache_state(c, f->inocache, INO_STATE_CHECKEDABSENT);
1216 if (f->inocache->state == INO_STATE_READING)
1217 jffs2_set_inocache_state(c, f->inocache, INO_STATE_PRESENT);
1232 f->inocache->ino, ref_offset(rii.latest_ref));
1251 f->inocache->ino, je32_to_cpu(latest_node->isize), new_size);
1264 if (f->inocache->state != INO_STATE_CHECKING) {
1300 f->inocache->ino, jemode_to_cpu(latest_node->mode));
1305 f->inocache->ino, jemode_to_cpu(latest_node->mode));
1311 f->inocache->ino, jemode_to_cpu(latest_node->mode));
1321 if (f->inocache->state == INO_STATE_READING)
1322 jffs2_set_inocache_state(c, f->inocache, INO_STATE_PRESENT);
1335 f->inocache = jffs2_get_ino_cache(c, ino);
1337 if (f->inocache) {
1339 switch(f->inocache->state) {
1342 f->inocache->state = INO_STATE_READING;
1350 dbg_readinode("waiting for ino #%u in state %d\n", ino, f->inocache->state);
1359 JFFS2_ERROR("Eep. Trying to read_inode #%u when it's already in state %d!\n", ino, f->inocache->state);
1361 f->inocache = NULL;
1370 if (!f->inocache && ino == 1) {
1372 f->inocache = jffs2_alloc_inode_cache();
1373 if (!f->inocache) {
1374 JFFS2_ERROR("cannot allocate inocache for root inode\n");
1377 dbg_readinode("creating inocache for root inode\n");
1378 memset(f->inocache, 0, sizeof(struct jffs2_inode_cache));
1379 f->inocache->ino = f->inocache->pino_nlink = 1;
1380 f->inocache->nodes = (struct jffs2_raw_node_ref *)f->inocache;
1381 f->inocache->state = INO_STATE_READING;
1382 jffs2_add_ino_cache(c, f->inocache);
1384 if (!f->inocache) {
1403 f->inocache = ic;
1418 jffs2_xattr_delete_inode(c, f->inocache);
1420 deleted = f->inocache && !f->inocache->pino_nlink;
1422 if (f->inocache && f->inocache->state != INO_STATE_CHECKING)
1423 jffs2_set_inocache_state(c, f->inocache, INO_STATE_CLEARING);
1440 if (f->inocache && f->inocache->state != INO_STATE_CHECKING) {
1441 jffs2_set_inocache_state(c, f->inocache, INO_STATE_CHECKEDABSENT);
1442 if (f->inocache->nodes == (void *)f->inocache)
1443 jffs2_del_ino_cache(c, f->inocache);