Searched refs:num_cnodes (Results 1 – 1 of 1) sorted by relevance
346 static struct reiserfs_journal_cnode *allocate_cnodes(int num_cnodes) in allocate_cnodes() argument350 if (num_cnodes <= 0) { in allocate_cnodes()353 head = vzalloc(array_size(num_cnodes, in allocate_cnodes()360 for (i = 1; i < num_cnodes; i++) { in allocate_cnodes()364 head[num_cnodes - 1].next = NULL; in allocate_cnodes()2717 int num_cnodes = SB_ONDISK_JOURNAL_SIZE(sb) * 2; in journal_init() local2868 journal->j_cnode_free_list = allocate_cnodes(num_cnodes); in journal_init()2870 journal->j_cnode_free = journal->j_cnode_free_list ? num_cnodes : 0; in journal_init()2879 sizeof (struct reiserfs_journal_cnode) * num_cnodes); in journal_init()