Lines Matching refs:block_buf
30 char *block_buf, int bmap_flags,
36 blk_t ind, char *block_buf,
49 retval = io_channel_read_blk(fs->io, ind, 1, block_buf);
58 ((blk_t *) block_buf)[nr] = b;
59 return io_channel_write_blk(fs->io, ind, 1, block_buf);
62 b = ((blk_t *) block_buf)[nr];
69 b = nr ? ((blk_t *) block_buf)[nr-1] : 0;
71 block_buf + fs->blocksize, &b);
76 ((blk_t *) block_buf)[nr] = ext2fs_swab32(b);
78 ((blk_t *) block_buf)[nr] = b;
81 retval = io_channel_write_blk(fs->io, ind, 1, block_buf);
93 blk_t dind, char *block_buf,
103 retval = block_ind_bmap(fs, flags & ~BMAP_SET, dind, block_buf,
107 retval = block_ind_bmap(fs, flags, b, block_buf, blocks_alloc,
113 blk_t tind, char *block_buf,
123 retval = block_dind_bmap(fs, flags & ~BMAP_SET, tind, block_buf,
127 retval = block_ind_bmap(fs, flags, b, block_buf, blocks_alloc,
133 char *block_buf, int bmap_flags, blk64_t block,
189 retval = ext2fs_alloc_block(fs, b, block_buf, &b);
207 if (!block_buf) {
211 block_buf = buf;
226 retval = ext2fs_alloc_block(fs, b, block_buf, &b);
249 retval = ext2fs_alloc_block(fs, b, block_buf, &b);
255 retval = block_ind_bmap(fs, bmap_flags, b, block_buf,
274 retval = ext2fs_alloc_block(fs, b, block_buf, &b);
280 retval = block_dind_bmap(fs, bmap_flags, b, block_buf,
298 retval = ext2fs_alloc_block(fs, b, block_buf, &b);
304 retval = block_tind_bmap(fs, bmap_flags, b, block_buf,
321 char *block_buf, int bmap_flags, blk_t block,
327 ret = ext2fs_bmap2(fs, ino, inode, block_buf, bmap_flags, block,