Lines Matching defs:vnode
37 * chfs_scan_make_vnode_cache - makes a new vnode cache during scan
38 * This function returns a vnode cache belonging to @vno.
47 /* vnode cache already exists */
53 /* update max vnode number if needed */
58 /* create new vnode cache */
100 /* chfs_scan_check_vnode - check vnode crc and add it to vnode cache */
107 struct chfs_flash_vnode *vnode = buf;
113 crc = crc32(0, (uint8_t *)vnode,
117 if (crc != le32toh(vnode->node_crc)) {
119 cheb, le32toh(vnode->length));
127 vno = le64toh(vnode->vno);
129 /* find the corresponding vnode cache */
146 /* check version of vnode */
148 if (le64toh(vnode->version) > *vc->vno_version) {
149 *vc->vno_version = le64toh(vnode->version);
159 *vc->vno_version = le64toh(vnode->version);
166 chfs_change_size_free(chmp, cheb, -le32toh(vnode->length));
167 chfs_change_size_used(chmp, cheb, le32toh(vnode->length));
188 /* remove dirent's node ref from vnode cache */
208 /* chfs_add_fd_to_list - adds a directory entry to its parent's vnode cache */
276 /* chfs_scan_check_dirent_node - check vnode crc and add to vnode cache */
349 /* chfs_scan_check_data_node - check vnode crc and add to vnode cache */
424 * to the vnode cache.
496 /* vnode information */
506 chfs_err("Error reading vnode: read: %zu instead of: %zu\n",