Lines Matching refs:file_entry

46 struct file_entry {  struct
91 const struct file_entry* file_entry_ro; in file_block_map_init()
126 const struct file_entry* file_entry_ro; in file_print()
199 const struct file_entry* file_entry_ro; in file_block_map_update()
200 struct file_entry* file_entry_rw = NULL; in file_block_map_update()
545 const struct file_entry* file_entry; in file_get_info() local
547 file_entry = block_get(tr, block_mac, NULL, ref); in file_get_info()
548 if (!file_entry) { in file_get_info()
553 assert(file_entry); in file_get_info()
554 assert(file_entry->magic == FILE_ENTRY_MAGIC); in file_get_info()
556 return &file_entry->info; in file_get_info()
565 const struct file_entry* entry = containerof(data, struct file_entry, info); in file_info_put()
654 const struct file_entry* file_entry; in file_tree_lookup() local
658 assert(strlen(file_path) < sizeof(file_entry->info.path)); in file_tree_lookup()
659 assert(sizeof(*file_entry) <= tr->fs->dev->block_size); in file_tree_lookup()
686 file_entry = block_get(tr, &block_mac, NULL, &file_entry_ref); in file_tree_lookup()
687 if (!file_entry) { in file_tree_lookup()
692 assert(file_entry); in file_tree_lookup()
693 assert(file_entry->magic == FILE_ENTRY_MAGIC); in file_tree_lookup()
694 found = !strcmp(file_path, file_entry->info.path); in file_tree_lookup()
699 block_put(file_entry, &file_entry_ref); in file_tree_lookup()
736 struct file_entry* file_entry; in file_create() local
755 file_entry = block_get_cleared(tr, block, false, &file_entry_ref); in file_create()
756 assert(file_entry); in file_create()
757 file_entry->magic = FILE_ENTRY_MAGIC; in file_create()
758 strcpy(file_entry->info.path, path); in file_create()
759 block_put_dirty(tr, file_entry, &file_entry_ref, block_mac_out, NULL); in file_create()
995 const struct file_entry* file_entry_ro; in file_open()
1089 const struct file_entry* file_entry; in file_delete() local
1119 file_entry = block_get(tr, &block_mac, NULL, &file_entry_ref); in file_delete()
1120 if (!file_entry) { in file_delete()
1125 assert(file_entry); in file_delete()
1126 assert(!strcmp(file_entry->info.path, path)); in file_delete()
1127 block_map_init(tr, &block_map, &file_entry->block_map, in file_delete()
1130 block_discard_dirty(file_entry); in file_delete()
1132 block_put(file_entry, &file_entry_ref); in file_delete()
1425 const struct file_entry* file_entry_ro; in file_transaction_complete()
1594 const struct file_entry* file_entry_ro; in file_read_size()