Lines Matching refs:blocksize
34 #define BMAP_BUFFER (file->buf + fs->blocksize)
69 retval = ext2fs_get_array(3, fs->blocksize, &file->buf); in ext2fs_file_open2()
163 b = file->pos / file->fs->blocksize; in sync_buffer_position()
202 memset(file->buf, 0, fs->blocksize); in load_buffer()
246 start = file->pos % fs->blocksize; in ext2fs_file_read()
247 c = fs->blocksize - start; in ext2fs_file_read()
287 start = file->pos % fs->blocksize; in ext2fs_file_write()
288 c = fs->blocksize - start; in ext2fs_file_write()
296 retval = load_buffer(file, (c == fs->blocksize)); in ext2fs_file_write()
402 ext2_off64_t off = offset % fs->blocksize; in ext2fs_file_zero_past_offset()
416 offset / fs->blocksize, &ret_flags, &blk); in ext2fs_file_zero_past_offset()
423 retval = ext2fs_get_mem(fs->blocksize, &b); in ext2fs_file_zero_past_offset()
432 memset(b + off, 0, fs->blocksize - off); in ext2fs_file_zero_past_offset()
456 (size - 1) / file->fs->blocksize)) in ext2fs_file_set_size2()
458 truncate_block = ((size + file->fs->blocksize - 1) >> in ext2fs_file_set_size2()
461 old_truncate = ((old_size + file->fs->blocksize - 1) >> in ext2fs_file_set_size2()