Lines Matching defs:in

445 static int yaffs2_checkpt_tnode_worker(struct yaffs_obj *in,
450 struct yaffs_dev *dev = in->my_dev;
461 ok = yaffs2_checkpt_tnode_worker(in,
549 /* Iterate through the objects in each hash entry,
942 struct yaffs_obj *in;
971 /* An unassigned chunk in the block.
986 /* We're looking at the first chunk in
1021 " Unfixed ECC in chunk(%d:%d), chunk ignored",
1046 in = yaffs_find_or_create_by_number(dev,
1049 if (!in)
1053 if (in &&
1054 in->variant_type == YAFFS_OBJECT_TYPE_FILE &&
1055 chunk_base < in->variant.file_variant.shrink_size) {
1058 if (!yaffs_put_chunk_in_file(in, tags.chunk_id,
1070 if (!in->valid &&
1071 in->variant.file_variant.scanned_size < endpos) {
1072 in->variant.file_variant.
1074 in->variant.file_variant.
1077 } else if (in) {
1085 * Thus, we read in the object header and make
1094 in = NULL;
1097 in = yaffs_find_or_create_by_number(dev,
1100 if (!in)
1104 if (!in ||
1105 (!in->valid && dev->param.disable_lazy_load) ||
1107 (!in->valid && (tags.obj_id == YAFFS_OBJECTID_ROOT ||
1133 if (!in) {
1134 in = yaffs_find_or_create_by_number(dev,
1136 if (!in)
1141 if (!in) {
1149 if (in->valid) {
1155 if ((in->variant_type == YAFFS_OBJECT_TYPE_FILE) &&
1183 in->variant.file_variant.shrink_size >
1185 in->variant.file_variant.shrink_size =
1195 if (!in->valid && in->variant_type !=
1200 in->variant_type, tags.obj_id,
1202 in = yaffs_retype_obj(in, oh ? oh->type : tags.extra_obj_type);
1205 if (!in->valid &&
1210 in->valid = 1;
1213 in->yst_mode = oh->yst_mode;
1214 yaffs_load_attribs(in, oh);
1215 in->lazy_loaded = 0;
1217 in->lazy_loaded = 1;
1219 in->hdr_chunk = chunk;
1221 } else if (!in->valid) {
1223 in->valid = 1;
1224 in->hdr_chunk = chunk;
1226 in->variant_type = oh->type;
1227 in->yst_mode = oh->yst_mode;
1228 yaffs_load_attribs(in, oh);
1234 yaffs_set_obj_name_from_oh(in, oh);
1242 in->variant_type = tags.extra_obj_type;
1249 in->lazy_loaded = 1;
1251 in->dirty = 0;
1275 "yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found."
1279 yaffs_add_obj_to_dir(parent, in);
1290 * object is scanned we put them all in a list.
1296 switch (in->variant_type) {
1301 file_var = &in->variant.file_variant;
1318 hl_var = &in->variant.hardlink_variant;
1321 list_add(&in->hard_links, hard_list);
1331 sl_var = &in->variant.symlink_variant;
1468 /* get the block to scan in the correct order */
1474 /* For each chunk in each block that needs scanning.... */