Lines Matching refs:bn
139 struct reiserfs_bitmap_node *bn; in allocate_bitmap_node() local
142 bn = kmalloc(sizeof(struct reiserfs_bitmap_node), GFP_NOFS); in allocate_bitmap_node()
143 if (!bn) { in allocate_bitmap_node()
146 bn->data = kzalloc(sb->s_blocksize, GFP_NOFS); in allocate_bitmap_node()
147 if (!bn->data) { in allocate_bitmap_node()
148 kfree(bn); in allocate_bitmap_node()
151 bn->id = id++; in allocate_bitmap_node()
152 INIT_LIST_HEAD(&bn->list); in allocate_bitmap_node()
153 return bn; in allocate_bitmap_node()
159 struct reiserfs_bitmap_node *bn = NULL; in get_bitmap_node() local
166 bn = list_entry(entry, struct reiserfs_bitmap_node, list); in get_bitmap_node()
168 memset(bn->data, 0, sb->s_blocksize); in get_bitmap_node()
170 return bn; in get_bitmap_node()
172 bn = allocate_bitmap_node(sb); in get_bitmap_node()
173 if (!bn) { in get_bitmap_node()
177 return bn; in get_bitmap_node()
180 struct reiserfs_bitmap_node *bn) in free_bitmap_node() argument
185 kfree(bn->data); in free_bitmap_node()
186 kfree(bn); in free_bitmap_node()
188 list_add(&bn->list, &journal->j_bitmap_nodes); in free_bitmap_node()
197 struct reiserfs_bitmap_node *bn = NULL; in allocate_bitmap_nodes() local
199 bn = allocate_bitmap_node(sb); in allocate_bitmap_nodes()
200 if (bn) { in allocate_bitmap_nodes()
201 list_add(&bn->list, &journal->j_bitmap_nodes); in allocate_bitmap_nodes()
261 struct reiserfs_bitmap_node *bn; in free_bitmap_nodes() local
264 bn = list_entry(next, struct reiserfs_bitmap_node, list); in free_bitmap_nodes()
266 kfree(bn->data); in free_bitmap_nodes()
267 kfree(bn); in free_bitmap_nodes()
979 b_blocknr_t bn; in flush_commit_list() local
1056 bn = SB_ONDISK_JOURNAL_1st_BLOCK(s) + (jl->j_start + i) % in flush_commit_list()
1058 tbh = journal_find_get_block(s, bn); in flush_commit_list()
1071 bn = SB_ONDISK_JOURNAL_1st_BLOCK(s) + in flush_commit_list()
1073 tbh = journal_find_get_block(s, bn); in flush_commit_list()