Lines Matching refs:object
1377 if (cache->object == obj && cache->dirty) in yaffs_obj_cache_dirty()
1400 if (dev->cache[i].object == obj && in yaffs_flush_file_cache()
1413 yaffs_wr_data_obj(cache->object, in yaffs_flush_file_cache()
1418 cache->object = NULL; in yaffs_flush_file_cache()
1445 if (dev->cache[i].object && dev->cache[i].dirty) in yaffs_flush_whole_cache()
1446 obj = dev->cache[i].object; in yaffs_flush_whole_cache()
1465 if (!dev->cache[i].object) in yaffs_grab_chunk_worker()
1495 the_obj = dev->cache[0].object; in yaffs_grab_chunk_cache()
1500 if (dev->cache[i].object && in yaffs_grab_chunk_cache()
1505 the_obj = dev->cache[i].object; in yaffs_grab_chunk_cache()
1530 if (dev->cache[i].object == obj && in yaffs_find_chunk_cache()
1568 static void yaffs_invalidate_chunk_cache(struct yaffs_obj *object, int chunk_id) in yaffs_invalidate_chunk_cache() argument
1572 if (object->my_dev->param.n_caches > 0) { in yaffs_invalidate_chunk_cache()
1573 cache = yaffs_find_chunk_cache(object, chunk_id); in yaffs_invalidate_chunk_cache()
1576 cache->object = NULL; in yaffs_invalidate_chunk_cache()
1591 if (dev->cache[i].object == in) in yaffs_invalidate_whole_cache()
1592 dev->cache[i].object = NULL; in yaffs_invalidate_whole_cache()
2392 struct yaffs_obj *object; in yaffs_gc_process_chunk() local
2399 object = yaffs_find_by_number(dev, tags.obj_id); in yaffs_gc_process_chunk()
2406 if (object && !yaffs_skip_verification(dev)) { in yaffs_gc_process_chunk()
2409 object->hdr_chunk; in yaffs_gc_process_chunk()
2410 else if (object->soft_del) in yaffs_gc_process_chunk()
2416 (object, tags.chunk_id, in yaffs_gc_process_chunk()
2428 if (!object) { in yaffs_gc_process_chunk()
2436 if (object && in yaffs_gc_process_chunk()
2437 object->deleted && in yaffs_gc_process_chunk()
2438 object->soft_del && tags.chunk_id != 0) { in yaffs_gc_process_chunk()
2456 object->n_data_chunks--; in yaffs_gc_process_chunk()
2457 if (object->n_data_chunks <= 0) { in yaffs_gc_process_chunk()
2463 } else if (object) { in yaffs_gc_process_chunk()
2492 if (object->variant_type == YAFFS_OBJECT_TYPE_FILE) { in yaffs_gc_process_chunk()
2494 object->variant.file_variant.file_size); in yaffs_gc_process_chunk()
2496 object->variant.file_variant.file_size; in yaffs_gc_process_chunk()
2499 yaffs_verify_oh(object, oh, &tags, 1); in yaffs_gc_process_chunk()
2515 object->hdr_chunk = new_chunk; in yaffs_gc_process_chunk()
2516 object->serial = tags.serial_number; in yaffs_gc_process_chunk()
2519 yaffs_put_chunk_in_file(object, tags.chunk_id, in yaffs_gc_process_chunk()
2601 struct yaffs_obj *object = in yaffs_gc_block() local
2603 if (object) { in yaffs_gc_block()
2605 object->variant.file_variant.top); in yaffs_gc_block()
2606 object->variant.file_variant.top = NULL; in yaffs_gc_block()
2609 object->obj_id); in yaffs_gc_block()
2610 yaffs_generic_obj_del(object); in yaffs_gc_block()
2611 object->my_dev->n_deleted_files--; in yaffs_gc_block()
3453 cache->object = in; in yaffs_file_rd()
3577 cache->object = in; in yaffs_do_file_wr()
3607 (cache->object, in yaffs_do_file_wr()
4781 dev->cache[i].object = NULL; in yaffs_guts_initialise()