Lines Matching refs:bhs
30 memcpy(dst, dir->bhs[index]->b_data + offset, remain); in adfs_dir_copyfrom()
37 memcpy(dst, dir->bhs[index]->b_data + offset, len); in adfs_dir_copyfrom()
55 memcpy(dir->bhs[index]->b_data + offset, src, remain); in adfs_dir_copyto()
62 memcpy(dir->bhs[index]->b_data + offset, src, len); in adfs_dir_copyto()
71 if (dir->bhs != dir->bh) in __adfs_dir_cleanup()
72 kfree(dir->bhs); in __adfs_dir_cleanup()
73 dir->bhs = NULL; in __adfs_dir_cleanup()
82 brelse(dir->bhs[i]); in adfs_dir_relse()
92 bforget(dir->bhs[i]); in adfs_dir_forget()
100 struct buffer_head **bhs; in adfs_dir_read_buffers() local
107 if (dir->bhs != dir->bh) in adfs_dir_read_buffers()
110 bhs = kcalloc(num, sizeof(*bhs), GFP_KERNEL); in adfs_dir_read_buffers()
111 if (!bhs) in adfs_dir_read_buffers()
115 memcpy(bhs, dir->bhs, dir->nr_buffers * sizeof(*bhs)); in adfs_dir_read_buffers()
117 dir->bhs = bhs; in adfs_dir_read_buffers()
128 dir->bhs[i] = sb_bread(sb, block); in adfs_dir_read_buffers()
129 if (!dir->bhs[i]) { in adfs_dir_read_buffers()
150 dir->bhs = dir->bh; in adfs_dir_read()
182 mark_buffer_dirty(dir->bhs[i]); in adfs_dir_mark_dirty()
191 struct buffer_head *bh = dir->bhs[i]; in adfs_dir_sync()