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