Lines Matching defs:directory

1268 void yaffs_add_obj_to_dir(struct yaffs_obj *directory, struct yaffs_obj *obj)
1270 if (!directory) {
1272 "tragedy: Trying to add an object to a null pointer directory"
1277 if (directory->variant_type != YAFFS_OBJECT_TYPE_DIRECTORY) {
1279 "tragedy: Trying to add an object to a non-directory"
1289 yaffs_verify_dir(directory);
1294 list_add(&obj->siblings, &directory->variant.dir_variant.children);
1295 obj->parent = directory;
1297 if (directory == obj->my_dev->unlinked_dir
1298 || directory == obj->my_dev->del_dir) {
1304 yaffs_verify_dir(directory);
1317 new_dir = obj->parent; /* use the old directory */
1321 "tragedy: yaffs_change_obj_name: new_dir is not a directory"
1331 /* If the object is a file going into the unlinked directory,
1334 * it into a directory.
1654 /* Move to unlinked directory so we have a deletion record */
1817 /* Now make the directory sane */
1824 /* Add it to the lost and found directory.
2042 * link (ie. name) is created or deleted in the directory.
2050 * of updates when many files in a directory are changed within a brief period.
2052 * If the directory updating is defered then yaffs_update_dirty_dirs must be
2097 yaffs_trace(YAFFS_TRACE_BACKGROUND, "Update directory %d",
3885 /* First check that the directory is empty. */
3966 * - Move it from its parent directory so that the rename works.
4211 * directory tree.
4282 * Delete directory contents for cleaning up lost and found.
4310 struct yaffs_obj *yaffs_find_by_name(struct yaffs_obj *directory,
4321 if (!directory) {
4323 "tragedy: yaffs_find_by_name: null pointer directory"
4328 if (directory->variant_type != YAFFS_OBJECT_TYPE_DIRECTORY) {
4330 "tragedy: yaffs_find_by_name: non-directory"
4337 list_for_each(i, &directory->variant.dir_variant.children) {
4340 if (l->parent != directory)
4460 /* Only a directory should drop through to here */