Searched refs:n_tnodes (Results 1 – 4 of 4) sorted by relevance
95 static int yaffs_create_tnodes(struct yaffs_dev *dev, int n_tnodes) in yaffs_create_tnodes() argument111 if (n_tnodes < 1) in yaffs_create_tnodes()115 new_tnodes = kmalloc(n_tnodes * dev->tnode_size, GFP_NOFS); in yaffs_create_tnodes()125 for (i = 0; i < n_tnodes - 1; i++) { in yaffs_create_tnodes()131 curr = (struct yaffs_tnode *)&mem[(n_tnodes - 1) * dev->tnode_size]; in yaffs_create_tnodes()135 allocator->n_free_tnodes += n_tnodes; in yaffs_create_tnodes()136 allocator->n_tnodes_created += n_tnodes; in yaffs_create_tnodes()
689 int n_tnodes; member
710 dev->n_tnodes++; in yaffs_get_tnode()722 dev->n_tnodes--; in yaffs_free_tnode()730 dev->n_tnodes = 0; in yaffs_deinit_tnodes_and_objs()1997 dev->n_tnodes = 0; in yaffs_init_tnodes_and_objs()
228 n_bytes += (dev->tnode_size + sizeof(u32)) * dev->n_tnodes; in yaffs_calc_checkpt_blocks_required()