Home
last modified time | relevance | path

Searched refs:chunk_size (Results 1 – 13 of 13) sorted by relevance

/fs/nilfs2/
Ddir.c120 unsigned int chunk_size = nilfs_chunk_size(dir); in nilfs_check_page() local
129 if (limit & (chunk_size - 1)) in nilfs_check_page()
144 if (((offs + rec_len - 1) ^ offs) & ~(chunk_size-1)) in nilfs_check_page()
443 unsigned int chunk_size = nilfs_chunk_size(dir); in nilfs_add_link() local
475 rec_len = chunk_size; in nilfs_add_link()
476 de->rec_len = nilfs_rec_len_to_disk(chunk_size); in nilfs_add_link()
583 unsigned int chunk_size = nilfs_chunk_size(inode); in nilfs_make_empty() local
591 err = nilfs_prepare_chunk(page, 0, chunk_size); in nilfs_make_empty()
597 memset(kaddr, 0, chunk_size); in nilfs_make_empty()
607 de->rec_len = nilfs_rec_len_to_disk(chunk_size - NILFS_DIR_REC_LEN(1)); in nilfs_make_empty()
[all …]
/fs/ext2/
Ddir.c113 unsigned chunk_size = ext2_chunk_size(dir); in ext2_check_page() local
122 if (limit & (chunk_size - 1)) in ext2_check_page()
137 if (unlikely(((offs + rec_len - 1) ^ offs) & ~(chunk_size-1))) in ext2_check_page()
492 unsigned chunk_size = ext2_chunk_size(dir); in ext2_add_link() local
525 rec_len = chunk_size; in ext2_add_link()
526 de->rec_len = ext2_rec_len_to_disk(chunk_size); in ext2_add_link()
632 unsigned chunk_size = ext2_chunk_size(inode); in ext2_make_empty() local
640 err = ext2_prepare_chunk(page, 0, chunk_size); in ext2_make_empty()
646 memset(kaddr, 0, chunk_size); in ext2_make_empty()
656 de->rec_len = ext2_rec_len_to_disk(chunk_size - EXT2_DIR_REC_LEN(1)); in ext2_make_empty()
[all …]
/fs/nfs/blocklayout/
Ddev.c127 p = xdr_decode_hyper(p, &b->stripe.chunk_size); in nfs4_block_decode_volume()
204 chunk = div_u64(offset, dev->chunk_size); in bl_map_stripe()
209 __func__, chunk_idx, offset, dev->chunk_size); in bl_map_stripe()
215 offset = chunk * dev->chunk_size; in bl_map_stripe()
225 map->len = dev->chunk_size; in bl_map_stripe()
449 d->chunk_size = v->stripe.chunk_size; in bl_parse_stripe()
Dblocklayout.h80 u64 chunk_size; member
109 u64 chunk_size; member
/fs/ufs/
Ddir.c312 const unsigned int chunk_size = UFS_SB(sb)->s_uspi->s_dirblksize; in ufs_add_link() local
345 rec_len = chunk_size; in ufs_add_link()
346 de->d_reclen = cpu_to_fs16(sb, chunk_size); in ufs_add_link()
548 const unsigned int chunk_size = UFS_SB(sb)->s_uspi->s_dirblksize; in ufs_make_empty() local
556 err = ufs_prepare_chunk(page, 0, chunk_size); in ufs_make_empty()
577 de->d_reclen = cpu_to_fs16(sb, chunk_size - UFS_DIR_REC_LEN(1)); in ufs_make_empty()
582 err = ufs_commit_chunk(page, 0, chunk_size); in ufs_make_empty()
/fs/btrfs/
Dspace-info.h31 u64 chunk_size; member
129 u64 chunk_size);
Dspace-info.c217 u64 chunk_size) in btrfs_update_space_info_chunk_size() argument
219 WRITE_ONCE(space_info->chunk_size, chunk_size); in btrfs_update_space_info_chunk_size()
Dsysfs.c724 return sysfs_emit(buf, "%llu\n", READ_ONCE(sinfo->chunk_size)); in btrfs_chunk_size_show()
835 BTRFS_ATTR_RW(space_info, chunk_size, btrfs_chunk_size_show, btrfs_chunk_size_store);
887 BTRFS_ATTR_PTR(space_info, chunk_size),
Dvolumes.c5129 u64 chunk_size; member
5142 ctl->max_chunk_size = READ_ONCE(space_info->chunk_size); in init_alloc_chunk_ctl_policy_regular()
5334 ctl->chunk_size = ctl->stripe_size * data_stripes; in decide_stripe_size_regular()
5366 ctl->chunk_size = ctl->stripe_size * data_stripes; in decide_stripe_size_zoned()
5439 trace_btrfs_chunk_alloc(info, map, start, ctl->chunk_size); in create_chunk()
5449 em->len = ctl->chunk_size; in create_chunk()
5464 block_group = btrfs_make_block_group(trans, 0, type, start, ctl->chunk_size); in create_chunk()
Dblock-group.c2448 u64 chunk_offset, u64 chunk_size) in insert_dev_extents() argument
2459 em = btrfs_get_chunk_map(fs_info, chunk_offset, chunk_size); in insert_dev_extents()
/fs/minix/
Ddir.c86 unsigned chunk_size = sbi->s_dirsize; in minix_readdir() local
92 ctx->pos = pos = ALIGN(pos, chunk_size); in minix_readdir()
107 limit = kaddr + minix_last_byte(inode, n) - chunk_size; in minix_readdir()
128 ctx->pos += chunk_size; in minix_readdir()
/fs/gfs2/
Drgrp.c380 u32 chunk_size; in gfs2_free_extlen() local
402 chunk_size = ((ptr == NULL) ? bytes : (ptr - start)); in gfs2_free_extlen()
403 chunk_size *= GFS2_NBBY; in gfs2_free_extlen()
404 BUG_ON(len < chunk_size); in gfs2_free_extlen()
405 len -= chunk_size; in gfs2_free_extlen()
407 if (gfs2_rbm_from_block(&rbm, block + chunk_size)) { in gfs2_free_extlen()
/fs/ext4/
Dmballoc.c4089 #define NRL_CHECK_SIZE(req, size, max, chunk_size) \ in ext4_mb_normalize_request() argument
4090 (req <= (size) || max <= (chunk_size)) in ext4_mb_normalize_request()