/* If the directory updating is defered then yaffs_update_dirty_dirs must be called periodically.  */
static void yaffs_update_parent(struct yaffs_obj *obj)
/* If the directory updating is defered then yaffs_update_dirty_dirs must be called periodically.  */
static void yaffs_update_parent(struct yaffs_obj *obj)
{
	struct yaffs_dev *dev;
	if (!obj)
		return;
	dev = obj->my_dev;
	obj->dirty = 1;
	yaffs_load_current_time(obj, 0, 1);
	if (dev->param.defered_dir_update) {
		struct list_head *link = &obj->variant.dir_variant.dirty;
		if (list_empty(link)) {
			list_add(link, &dev->dirty_dirs);
			yaffs_trace(YAFFS_TRACE_BACKGROUND,
			  "Added object %d to dirty directories",
			   obj->obj_id);
		}
	} else {
		yaffs_update_oh(obj, NULL, 0, 0, 0, NULL);
	}
}