Home
last modified time | relevance | path

Searched refs:blocksize (Results 1 – 25 of 97) sorted by relevance

1234

/linux-4.19.296/fs/hfsplus/
Dwrapper.c165 u32 blocksize; in hfsplus_read_wrapper() local
169 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper()
170 if (!blocksize) in hfsplus_read_wrapper()
230 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize); in hfsplus_read_wrapper()
235 if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize)) in hfsplus_read_wrapper()
237 sbi->alloc_blksz = blocksize; in hfsplus_read_wrapper()
238 sbi->alloc_blksz_shift = ilog2(blocksize); in hfsplus_read_wrapper()
239 blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE); in hfsplus_read_wrapper()
244 while (part_start & ((blocksize >> HFSPLUS_SECTOR_SHIFT) - 1)) in hfsplus_read_wrapper()
245 blocksize >>= 1; in hfsplus_read_wrapper()
[all …]
/linux-4.19.296/block/partitions/
Dibm.c67 int blocksize, in find_label() argument
93 testsect[0] = info->label_block * (blocksize >> 9); in find_label()
97 testsect[1] = (blocksize >> 9); in find_label()
98 testsect[2] = 2 * (blocksize >> 9); in find_label()
135 int blocksize, in find_vol1_partitions() argument
154 secperblk = blocksize >> 9; in find_vol1_partitions()
197 int blocksize, in find_lnx1_partitions() argument
210 secperblk = blocksize >> 9; in find_lnx1_partitions()
244 int blocksize, in find_cms1_partitions() argument
256 blocksize = label->cms.block_size; in find_cms1_partitions()
[all …]
/linux-4.19.296/fs/nilfs2/
Dthe_nilfs.c227 int blocksize; in load_nilfs() local
249 blocksize = BLOCK_SIZE << le32_to_cpu(sbp[0]->s_log_block_size); in load_nilfs()
250 if (blocksize != nilfs->ns_blocksize) { in load_nilfs()
253 blocksize, nilfs->ns_blocksize); in load_nilfs()
563 struct super_block *sb, int blocksize, in nilfs_load_super_block() argument
577 sbp[0] = nilfs_read_super_block(sb, NILFS_SB_OFFSET_BYTES, blocksize, in nilfs_load_super_block()
579 sbp[1] = nilfs_read_super_block(sb, sb2off, blocksize, &sbh[1]); in nilfs_load_super_block()
588 blocksize); in nilfs_load_super_block()
592 blocksize); in nilfs_load_super_block()
621 blocksize); in nilfs_load_super_block()
[all …]
Drecovery.c97 unsigned int blocksize = nilfs->ns_blocksize; in nilfs_compute_checksum() local
101 BUG_ON(offset >= blocksize); in nilfs_compute_checksum()
103 size = min_t(u64, check_bytes, blocksize - offset); in nilfs_compute_checksum()
110 bh = __bread(nilfs->ns_bdev, ++start, blocksize); in nilfs_compute_checksum()
114 size = min_t(u64, check_bytes, blocksize); in nilfs_compute_checksum()
499 unsigned int blocksize = nilfs->ns_blocksize; in nilfs_recover_dsync_blocks() local
513 err = block_write_begin(inode->i_mapping, pos, blocksize, in nilfs_recover_dsync_blocks()
518 if (pos + blocksize > isize) in nilfs_recover_dsync_blocks()
520 pos + blocksize); in nilfs_recover_dsync_blocks()
532 block_write_end(NULL, inode->i_mapping, pos, blocksize, in nilfs_recover_dsync_blocks()
[all …]
/linux-4.19.296/fs/ocfs2/
Dblockcheck.c154 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument
156 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block()
222 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument
225 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block()
391 void ocfs2_block_check_compute(void *data, size_t blocksize, in ocfs2_block_check_compute() argument
399 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_compute()
400 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute()
420 int ocfs2_block_check_validate(void *data, size_t blocksize, in ocfs2_block_check_validate() argument
437 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate()
447 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate()
[all …]
Docfs2_fs.h1270 static inline struct ocfs2_disk_dqtrailer *ocfs2_block_dqtrailer(int blocksize, in ocfs2_block_dqtrailer() argument
1274 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer()
1479 static inline int ocfs2_fast_symlink_chars(int blocksize) in ocfs2_fast_symlink_chars() argument
1481 return blocksize - offsetof(struct ocfs2_dinode, id2.i_symlink); in ocfs2_fast_symlink_chars()
1484 static inline int ocfs2_max_inline_data_with_xattr(int blocksize, in ocfs2_max_inline_data_with_xattr() argument
1488 return blocksize - in ocfs2_max_inline_data_with_xattr()
1492 return blocksize - in ocfs2_max_inline_data_with_xattr()
1496 static inline int ocfs2_extent_recs_per_inode(int blocksize) in ocfs2_extent_recs_per_inode() argument
1500 size = blocksize - in ocfs2_extent_recs_per_inode()
1506 static inline int ocfs2_chain_recs_per_inode(int blocksize) in ocfs2_chain_recs_per_inode() argument
[all …]
Dblockcheck.h55 void ocfs2_block_check_compute(void *data, size_t blocksize,
57 int ocfs2_block_check_validate(void *data, size_t blocksize,
104 extern u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize);
105 extern void ocfs2_hamming_fix_block(void *data, unsigned int blocksize,
/linux-4.19.296/include/uapi/linux/
Dcryptouser.h74 unsigned int blocksize; member
80 unsigned int blocksize; member
88 unsigned int blocksize; member
97 unsigned int blocksize; member
/linux-4.19.296/fs/affs/
Dsuper.c196 int *blocksize, char **prefix, char *volume, unsigned long *mount_opts) in parse_options() argument
207 *blocksize = -1; in parse_options()
229 *blocksize = n; in parse_options()
345 int size, blocksize; in affs_fill_super() local
375 &blocksize,&sbi->s_prefix, in affs_fill_super()
401 if (blocksize > 0) { in affs_fill_super()
402 i = j = blocksize; in affs_fill_super()
403 size = size / (blocksize / 512); in affs_fill_super()
406 for (blocksize = i; blocksize <= j; blocksize <<= 1, size >>= 1) { in affs_fill_super()
410 pr_debug("setting blocksize to %d\n", blocksize); in affs_fill_super()
[all …]
/linux-4.19.296/fs/
Dbuffer.c534 sector_t bblock, unsigned blocksize) in write_boundary_block() argument
536 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); in write_boundary_block()
1524 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument
1528 head = alloc_page_buffers(page, blocksize, true); in create_empty_buffers()
1635 static inline int block_size_bits(unsigned int blocksize) in block_size_bits() argument
1637 return ilog2(blocksize); in block_size_bits()
1687 unsigned int blocksize, bbits; in __block_write_full_page() local
1705 blocksize = bh->b_size; in __block_write_full_page()
1706 bbits = block_size_bits(blocksize); in __block_write_full_page()
1729 WARN_ON(bh->b_size != blocksize); in __block_write_full_page()
[all …]
/linux-4.19.296/fs/ext4/
Dnamei.c296 struct dx_map_entry *offsets, int count, unsigned blocksize);
297 static struct ext4_dir_entry_2* dx_pack_dirents(char *base, unsigned blocksize);
312 unsigned int blocksize) in initialize_dirent_tail() argument
316 sizeof(struct ext4_dir_entry_tail), blocksize); in initialize_dirent_tail()
325 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dirent_tail() local
332 (blocksize - sizeof(struct ext4_dir_entry_tail))); in get_dirent_tail()
333 while (d < top && ext4_rec_len_from_disk(d->rec_len, blocksize)) in get_dirent_tail()
335 ext4_rec_len_from_disk(d->rec_len, blocksize)); in get_dirent_tail()
346 (ext4_rec_len_from_disk(t->det_rec_len, blocksize) != in get_dirent_tail()
429 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dx_countlimit() local
[all …]
Dmove_extent.c172 unsigned int blocksize, block_start, block_end; in mext_page_mkuptodate() local
180 blocksize = i_blocksize(inode); in mext_page_mkuptodate()
182 create_empty_buffers(page, blocksize, 0); in mext_page_mkuptodate()
188 block_end = block_start + blocksize; in mext_page_mkuptodate()
203 zero_user(page, block_start, blocksize); in mext_page_mkuptodate()
256 unsigned long blocksize = orig_inode->i_sb->s_blocksize; in move_extent_per_page() local
288 tmp_data_size = orig_inode->i_size & (blocksize - 1); in move_extent_per_page()
294 tmp_data_size = blocksize; in move_extent_per_page()
454 unsigned int blocksize = 1 << blkbits; in mext_check_arguments() local
456 orig_eof = (i_size_read(orig_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
[all …]
Dsuper.c2092 int blocksize = in parse_options() local
2095 if (blocksize < PAGE_SIZE) { in parse_options()
3606 int blocksize, clustersize; in ext4_fill_super() local
3637 blocksize = sb_min_blocksize(sb, EXT4_MIN_BLOCK_SIZE); in ext4_fill_super()
3638 if (!blocksize) { in ext4_fill_super()
3647 if (blocksize != EXT4_MIN_BLOCK_SIZE) { in ext4_fill_super()
3649 offset = do_div(logical_sb_block, blocksize); in ext4_fill_super()
3767 blocksize = BLOCK_SIZE << le32_to_cpu(es->s_log_block_size); in ext4_fill_super()
3768 if (blocksize < EXT4_MIN_BLOCK_SIZE || in ext4_fill_super()
3769 blocksize > EXT4_MAX_BLOCK_SIZE) { in ext4_fill_super()
[all …]
/linux-4.19.296/include/linux/
Ddax.h70 bool __bdev_dax_supported(struct block_device *bdev, int blocksize);
71 static inline bool bdev_dax_supported(struct block_device *bdev, int blocksize) in bdev_dax_supported() argument
73 return __bdev_dax_supported(bdev, blocksize); in bdev_dax_supported()
95 int blocksize) in bdev_dax_supported() argument
/linux-4.19.296/fs/ntfs/
Daops.c194 unsigned int blocksize, vcn_ofs; in ntfs_read_block() local
205 blocksize = vol->sb->s_blocksize; in ntfs_read_block()
209 create_empty_buffers(page, blocksize, 0); in ntfs_read_block()
231 lblock = (ni->allocated_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block()
239 zblock = (init_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block()
338 zero_user(page, i * blocksize, blocksize); in ntfs_read_block()
560 unsigned int blocksize, vcn_ofs; in ntfs_write_block() local
574 blocksize = vol->sb->s_blocksize; in ntfs_write_block()
578 create_empty_buffers(page, blocksize, in ntfs_write_block()
607 dblock = (i_size + blocksize - 1) >> blocksize_bits; in ntfs_write_block()
[all …]
Dfile.c602 unsigned blocksize, u; in ntfs_prepare_pages_for_non_resident_write() local
623 blocksize = vol->sb->s_blocksize; in ntfs_prepare_pages_for_non_resident_write()
634 create_empty_buffers(page, blocksize, 0); in ntfs_prepare_pages_for_non_resident_write()
666 bh_end = bh_pos + blocksize; in ntfs_prepare_pages_for_non_resident_write()
704 blocksize); in ntfs_prepare_pages_for_non_resident_write()
779 blocksize); in ntfs_prepare_pages_for_non_resident_write()
798 blocksize); in ntfs_prepare_pages_for_non_resident_write()
837 zero_user(page, bh_offset(bh), blocksize); in ntfs_prepare_pages_for_non_resident_write()
962 blocksize); in ntfs_prepare_pages_for_non_resident_write()
1188 } while (bh_pos += blocksize, (bh = bh->b_this_page) != head); in ntfs_prepare_pages_for_non_resident_write()
[all …]
/linux-4.19.296/fs/reiserfs/
Dfile.c181 unsigned blocksize; in reiserfs_commit_page() local
192 blocksize = i_blocksize(inode); in reiserfs_commit_page()
207 block_end = block_start + blocksize; in reiserfs_commit_page()
Dioctl.c177 unsigned long blocksize = inode->i_sb->s_blocksize; in reiserfs_unpack() local
197 write_from = inode->i_size & (blocksize - 1); in reiserfs_unpack()
/linux-4.19.296/fs/minix/
Dminix.h90 static inline unsigned minix_blocks_needed(unsigned bits, unsigned blocksize) in minix_blocks_needed() argument
92 return DIV_ROUND_UP(bits, blocksize * 8); in minix_blocks_needed()
Dbitmap.c27 static __u32 count_free(struct buffer_head *map[], unsigned blocksize, __u32 numbits) in count_free() argument
30 unsigned blocks = DIV_ROUND_UP(numbits, blocksize * 8); in count_free()
33 unsigned words = blocksize / 2; in count_free()
/linux-4.19.296/fs/ext2/
Dsuper.c849 int blocksize = BLOCK_SIZE; in ext2_fill_super() local
880 blocksize = sb_min_blocksize(sb, BLOCK_SIZE); in ext2_fill_super()
881 if (!blocksize) { in ext2_fill_super()
890 if (blocksize != BLOCK_SIZE) { in ext2_fill_super()
891 logic_sb_block = (sb_block*BLOCK_SIZE) / blocksize; in ext2_fill_super()
892 offset = (sb_block*BLOCK_SIZE) % blocksize; in ext2_fill_super()
987 blocksize = BLOCK_SIZE << le32_to_cpu(sbi->s_es->s_log_block_size); in ext2_fill_super()
990 if (!bdev_dax_supported(sb->s_bdev, blocksize)) { in ext2_fill_super()
998 if (sb->s_blocksize != blocksize) { in ext2_fill_super()
1001 if (!sb_set_blocksize(sb, blocksize)) { in ext2_fill_super()
[all …]
/linux-4.19.296/fs/sysv/
Ditree.c130 int blocksize = inode->i_sb->s_blocksize; in alloc_branch() local
153 memset(bh->b_data, 0, blocksize); in alloc_branch()
377 unsigned blocksize; in sysv_truncate() local
383 blocksize = inode->i_sb->s_blocksize; in sysv_truncate()
384 iblock = (inode->i_size + blocksize-1) in sysv_truncate()
/linux-4.19.296/crypto/
Dablkcipher.c186 unsigned bs = walk->blocksize; in ablkcipher_copy_iv()
236 bsize = min(walk->blocksize, n); in ablkcipher_walk_next()
295 walk->blocksize = crypto_tfm_alg_blocksize(req->base.tfm); in ablkcipher_walk_phys()
373 rblkcipher.blocksize = alg->cra_blocksize; in crypto_ablkcipher_report()
448 rblkcipher.blocksize = alg->cra_blocksize; in crypto_givcipher_report()
Dblkcipher.c348 unsigned int blocksize) in blkcipher_walk_virt_block() argument
351 walk->walk_blocksize = blocksize; in blkcipher_walk_virt_block()
362 unsigned int blocksize) in blkcipher_aead_walk_virt_block() argument
365 walk->walk_blocksize = blocksize; in blkcipher_aead_walk_virt_block()
515 rblkcipher.blocksize = alg->cra_blocksize; in crypto_blkcipher_report()
/linux-4.19.296/include/linux/ssb/
Dssb_driver_mips.h28 u32 blocksize; member

1234