Lines Matching refs:bn
138 struct reiserfs_bitmap_node *bn; in allocate_bitmap_node() local
141 bn = kmalloc(sizeof(struct reiserfs_bitmap_node), GFP_NOFS); in allocate_bitmap_node()
142 if (!bn) { in allocate_bitmap_node()
145 bn->data = kzalloc(sb->s_blocksize, GFP_NOFS); in allocate_bitmap_node()
146 if (!bn->data) { in allocate_bitmap_node()
147 kfree(bn); in allocate_bitmap_node()
150 bn->id = id++; in allocate_bitmap_node()
151 INIT_LIST_HEAD(&bn->list); in allocate_bitmap_node()
152 return bn; in allocate_bitmap_node()
158 struct reiserfs_bitmap_node *bn = NULL; in get_bitmap_node() local
165 bn = list_entry(entry, struct reiserfs_bitmap_node, list); in get_bitmap_node()
167 memset(bn->data, 0, sb->s_blocksize); in get_bitmap_node()
169 return bn; in get_bitmap_node()
171 bn = allocate_bitmap_node(sb); in get_bitmap_node()
172 if (!bn) { in get_bitmap_node()
176 return bn; in get_bitmap_node()
179 struct reiserfs_bitmap_node *bn) in free_bitmap_node() argument
184 kfree(bn->data); in free_bitmap_node()
185 kfree(bn); in free_bitmap_node()
187 list_add(&bn->list, &journal->j_bitmap_nodes); in free_bitmap_node()
196 struct reiserfs_bitmap_node *bn = NULL; in allocate_bitmap_nodes() local
198 bn = allocate_bitmap_node(sb); in allocate_bitmap_nodes()
199 if (bn) { in allocate_bitmap_nodes()
200 list_add(&bn->list, &journal->j_bitmap_nodes); in allocate_bitmap_nodes()
260 struct reiserfs_bitmap_node *bn; in free_bitmap_nodes() local
263 bn = list_entry(next, struct reiserfs_bitmap_node, list); in free_bitmap_nodes()
265 kfree(bn->data); in free_bitmap_nodes()
266 kfree(bn); in free_bitmap_nodes()
974 b_blocknr_t bn; in flush_commit_list() local
1051 bn = SB_ONDISK_JOURNAL_1st_BLOCK(s) + (jl->j_start + i) % in flush_commit_list()
1053 tbh = journal_find_get_block(s, bn); in flush_commit_list()
1067 bn = SB_ONDISK_JOURNAL_1st_BLOCK(s) + in flush_commit_list()
1069 tbh = journal_find_get_block(s, bn); in flush_commit_list()