Lines Matching refs:bn
120 struct reiserfs_bitmap_node *bn ; in allocate_bitmap_node() local
123 bn = reiserfs_kmalloc(sizeof(struct reiserfs_bitmap_node), GFP_NOFS, p_s_sb) ; in allocate_bitmap_node()
124 if (!bn) { in allocate_bitmap_node()
127 bn->data = reiserfs_kmalloc(p_s_sb->s_blocksize, GFP_NOFS, p_s_sb) ; in allocate_bitmap_node()
128 if (!bn->data) { in allocate_bitmap_node()
129 reiserfs_kfree(bn, sizeof(struct reiserfs_bitmap_node), p_s_sb) ; in allocate_bitmap_node()
132 bn->id = id++ ; in allocate_bitmap_node()
133 memset(bn->data, 0, p_s_sb->s_blocksize) ; in allocate_bitmap_node()
134 INIT_LIST_HEAD(&bn->list) ; in allocate_bitmap_node()
135 return bn ; in allocate_bitmap_node()
140 struct reiserfs_bitmap_node *bn = NULL; in get_bitmap_node() local
147 bn = list_entry(entry, struct reiserfs_bitmap_node, list) ; in get_bitmap_node()
149 memset(bn->data, 0, p_s_sb->s_blocksize) ; in get_bitmap_node()
151 return bn ; in get_bitmap_node()
153 bn = allocate_bitmap_node(p_s_sb) ; in get_bitmap_node()
154 if (!bn) { in get_bitmap_node()
158 return bn ; in get_bitmap_node()
161 struct reiserfs_bitmap_node *bn) { in free_bitmap_node() argument
164 reiserfs_kfree(bn->data, p_s_sb->s_blocksize, p_s_sb) ; in free_bitmap_node()
165 reiserfs_kfree(bn, sizeof(struct reiserfs_bitmap_node), p_s_sb) ; in free_bitmap_node()
167 list_add(&bn->list, &SB_JOURNAL(p_s_sb)->j_bitmap_nodes) ; in free_bitmap_node()
174 struct reiserfs_bitmap_node *bn = NULL ; in allocate_bitmap_nodes() local
176 bn = allocate_bitmap_node(p_s_sb) ; in allocate_bitmap_nodes()
177 if (bn) { in allocate_bitmap_nodes()
178 list_add(&bn->list, &SB_JOURNAL(p_s_sb)->j_bitmap_nodes) ; in allocate_bitmap_nodes()
231 struct reiserfs_bitmap_node *bn ; in free_bitmap_nodes() local
234 bn = list_entry(next, struct reiserfs_bitmap_node, list) ; in free_bitmap_nodes()
236 reiserfs_kfree(bn->data, p_s_sb->s_blocksize, p_s_sb) ; in free_bitmap_nodes()
237 reiserfs_kfree(bn, sizeof(struct reiserfs_bitmap_node), p_s_sb) ; in free_bitmap_nodes()
618 int bn ; in flush_commit_list() local
690 bn = SB_ONDISK_JOURNAL_1st_BLOCK(s) + (jl->j_start+i) % SB_ONDISK_JOURNAL_SIZE(s); in flush_commit_list()
691 tbh = journal_get_hash_table(s, bn) ; in flush_commit_list()
719 bn = SB_ONDISK_JOURNAL_1st_BLOCK(s) + (jl->j_start + i) % SB_ONDISK_JOURNAL_SIZE(s) ; in flush_commit_list()
720 tbh = journal_get_hash_table(s, bn) ; in flush_commit_list()