Lines Matching refs:bn

140 	struct reiserfs_bitmap_node *bn;  in allocate_bitmap_node()  local
143 bn = kmalloc(sizeof(struct reiserfs_bitmap_node), GFP_NOFS); in allocate_bitmap_node()
144 if (!bn) { in allocate_bitmap_node()
147 bn->data = kzalloc(sb->s_blocksize, GFP_NOFS); in allocate_bitmap_node()
148 if (!bn->data) { in allocate_bitmap_node()
149 kfree(bn); in allocate_bitmap_node()
152 bn->id = id++; in allocate_bitmap_node()
153 INIT_LIST_HEAD(&bn->list); in allocate_bitmap_node()
154 return bn; in allocate_bitmap_node()
160 struct reiserfs_bitmap_node *bn = NULL; in get_bitmap_node() local
167 bn = list_entry(entry, struct reiserfs_bitmap_node, list); in get_bitmap_node()
169 memset(bn->data, 0, sb->s_blocksize); in get_bitmap_node()
171 return bn; in get_bitmap_node()
173 bn = allocate_bitmap_node(sb); in get_bitmap_node()
174 if (!bn) { in get_bitmap_node()
178 return bn; in get_bitmap_node()
181 struct reiserfs_bitmap_node *bn) in free_bitmap_node() argument
186 kfree(bn->data); in free_bitmap_node()
187 kfree(bn); in free_bitmap_node()
189 list_add(&bn->list, &journal->j_bitmap_nodes); in free_bitmap_node()
198 struct reiserfs_bitmap_node *bn = NULL; in allocate_bitmap_nodes() local
200 bn = allocate_bitmap_node(sb); in allocate_bitmap_nodes()
201 if (bn) { in allocate_bitmap_nodes()
202 list_add(&bn->list, &journal->j_bitmap_nodes); in allocate_bitmap_nodes()
262 struct reiserfs_bitmap_node *bn; in free_bitmap_nodes() local
265 bn = list_entry(next, struct reiserfs_bitmap_node, list); in free_bitmap_nodes()
267 kfree(bn->data); in free_bitmap_nodes()
268 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()