• Home
  • Raw
  • Download

Lines Matching refs:meta

50 	struct meta_index *meta = NULL;  in locate_meta_index()  local
68 meta = &msblk->meta_index[i]; in locate_meta_index()
69 offset = meta->offset; in locate_meta_index()
73 if (meta) in locate_meta_index()
74 meta->locked = 1; in locate_meta_index()
79 return meta; in locate_meta_index()
90 struct meta_index *meta = NULL; in empty_meta_index() local
131 meta = &msblk->meta_index[msblk->next_meta_index]; in empty_meta_index()
135 meta->inode_number = inode->i_ino; in empty_meta_index()
136 meta->offset = offset; in empty_meta_index()
137 meta->skip = skip; in empty_meta_index()
138 meta->entries = 0; in empty_meta_index()
139 meta->locked = 1; in empty_meta_index()
143 return meta; in empty_meta_index()
147 static void release_meta_index(struct inode *inode, struct meta_index *meta) in release_meta_index() argument
151 meta->locked = 0; in release_meta_index()
233 struct meta_index *meta; in fill_meta_index() local
246 meta = locate_meta_index(inode, offset + 1, index); in fill_meta_index()
248 if (meta == NULL) { in fill_meta_index()
249 meta = empty_meta_index(inode, offset + 1, skip); in fill_meta_index()
250 if (meta == NULL) in fill_meta_index()
253 offset = index < meta->offset + meta->entries ? index : in fill_meta_index()
254 meta->offset + meta->entries - 1; in fill_meta_index()
255 meta_entry = &meta->meta_entry[offset - meta->offset]; in fill_meta_index()
261 "meta->entries %d\n", offset, meta->offset, in fill_meta_index()
262 meta->entries); in fill_meta_index()
273 for (i = meta->offset + meta->entries; i <= index && in fill_meta_index()
274 i < meta->offset + SQUASHFS_META_ENTRIES; i++) { in fill_meta_index()
280 if (meta->entries == 0) in fill_meta_index()
285 meta->inode_number = 0; in fill_meta_index()
291 meta_entry = &meta->meta_entry[i - meta->offset]; in fill_meta_index()
296 meta->entries++; in fill_meta_index()
301 meta->offset, meta->entries); in fill_meta_index()
303 release_meta_index(inode, meta); in fill_meta_index()
317 release_meta_index(inode, meta); in fill_meta_index()