Lines Matching defs:oh
165 * Verify the object header. oh must be valid, but obj and tags may be NULL in
168 void yaffs_verify_oh(struct yaffs_obj *obj, struct yaffs_obj_hdr *oh,
174 if (!(tags && obj && oh)) {
176 "Verifying object header tags %p obj %p oh %p",
177 tags, obj, oh);
181 if (oh->type <= YAFFS_OBJECT_TYPE_UNKNOWN ||
182 oh->type > YAFFS_OBJECT_TYPE_MAX)
185 tags->obj_id, oh->type);
201 tags->obj_id, oh->parent_obj_id);
204 oh->parent_obj_id != obj->parent->obj_id &&
205 (oh->parent_obj_id != YAFFS_OBJECTID_UNLINKED ||
209 tags->obj_id, oh->parent_obj_id,
212 if (tags->obj_id > 1 && oh->name[0] == 0) /* Null name */
217 if (tags->obj_id > 1 && ((u8) (oh->name[0])) == 0xff) /* Junk name */
355 struct yaffs_obj_hdr *oh;
358 oh = (struct yaffs_obj_hdr *)buffer;
362 yaffs_verify_oh(obj, oh, &tags, 1);