Home
last modified time | relevance | path

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

1234

/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 …]
/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()
492 struct super_block *sb, int blocksize, in nilfs_load_super_block() argument
500 sbp[0] = nilfs_read_super_block(sb, NILFS_SB_OFFSET_BYTES, blocksize, in nilfs_load_super_block()
502 sbp[1] = nilfs_read_super_block(sb, sb2off, blocksize, &sbh[1]); in nilfs_load_super_block()
511 blocksize); in nilfs_load_super_block()
515 blocksize); in nilfs_load_super_block()
544 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 …]
/fs/ocfs2/
Docfs2_fs.h1231 static inline struct ocfs2_disk_dqtrailer *ocfs2_block_dqtrailer(int blocksize, in ocfs2_block_dqtrailer() argument
1235 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer()
1440 static inline int ocfs2_fast_symlink_chars(int blocksize) in ocfs2_fast_symlink_chars() argument
1442 return blocksize - offsetof(struct ocfs2_dinode, id2.i_symlink); in ocfs2_fast_symlink_chars()
1445 static inline int ocfs2_max_inline_data_with_xattr(int blocksize, in ocfs2_max_inline_data_with_xattr() argument
1449 return blocksize - in ocfs2_max_inline_data_with_xattr()
1453 return blocksize - in ocfs2_max_inline_data_with_xattr()
1457 static inline int ocfs2_extent_recs_per_inode(int blocksize) in ocfs2_extent_recs_per_inode() argument
1461 size = blocksize - in ocfs2_extent_recs_per_inode()
1467 static inline int ocfs2_chain_recs_per_inode(int blocksize) in ocfs2_chain_recs_per_inode() argument
[all …]
Dblockcheck.c146 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument
148 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block()
214 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument
217 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block()
351 void ocfs2_block_check_compute(void *data, size_t blocksize, in ocfs2_block_check_compute() argument
359 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_compute()
360 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute()
380 int ocfs2_block_check_validate(void *data, size_t blocksize, in ocfs2_block_check_validate() argument
397 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate()
407 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate()
[all …]
Dblockcheck.h44 void ocfs2_block_check_compute(void *data, size_t blocksize,
46 int ocfs2_block_check_validate(void *data, size_t blocksize,
93 extern u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize);
94 extern void ocfs2_hamming_fix_block(void *data, unsigned int blocksize,
/fs/affs/
Dsuper.c191 int *blocksize, char **prefix, char *volume, unsigned long *mount_opts) in parse_options() argument
202 *blocksize = -1; in parse_options()
224 *blocksize = n; in parse_options()
340 int size, blocksize; in affs_fill_super() local
374 &blocksize,&sbi->s_prefix, in affs_fill_super()
400 if (blocksize > 0) { in affs_fill_super()
401 i = j = blocksize; in affs_fill_super()
402 size = size / (blocksize / 512); in affs_fill_super()
405 for (blocksize = i; blocksize <= j; blocksize <<= 1, size >>= 1) { in affs_fill_super()
409 pr_debug("setting blocksize to %d\n", blocksize); in affs_fill_super()
[all …]
/fs/
Dbuffer.c536 sector_t bblock, unsigned blocksize) in write_boundary_block() argument
538 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); in write_boundary_block()
1515 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument
1519 head = alloc_page_buffers(page, blocksize, true); in create_empty_buffers()
1626 static inline int block_size_bits(unsigned int blocksize) in block_size_bits() argument
1628 return ilog2(blocksize); in block_size_bits()
1678 unsigned int blocksize, bbits; in __block_write_full_page() local
1696 blocksize = bh->b_size; in __block_write_full_page()
1697 bbits = block_size_bits(blocksize); in __block_write_full_page()
1720 WARN_ON(bh->b_size != blocksize); in __block_write_full_page()
[all …]
/fs/crypto/
Dcrypto.c163 const unsigned int blocksize = 1 << blockbits; in fscrypt_encrypt_pagecache_blocks() local
173 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_encrypt_pagecache_blocks()
180 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_encrypt_pagecache_blocks()
183 blocksize, i, gfp_flags); in fscrypt_encrypt_pagecache_blocks()
242 const unsigned int blocksize = 1 << blockbits; in fscrypt_decrypt_pagecache_blocks() local
251 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_decrypt_pagecache_blocks()
254 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_decrypt_pagecache_blocks()
256 page, blocksize, i, GFP_NOFS); in fscrypt_decrypt_pagecache_blocks()
Dbio.c48 const unsigned int blocksize = 1 << blockbits; in fscrypt_zeroout_range() local
66 blocksize, 0, GFP_NOFS); in fscrypt_zeroout_range()
81 ret = bio_add_page(bio, ciphertext_page, blocksize, 0); in fscrypt_zeroout_range()
82 if (WARN_ON(ret != blocksize)) { in fscrypt_zeroout_range()
/fs/ext4/
Dnamei.c277 unsigned blocksize, struct dx_hash_info *hinfo,
281 struct dx_map_entry *offsets, int count, unsigned blocksize);
282 static struct ext4_dir_entry_2* dx_pack_dirents(char *base, unsigned blocksize);
297 unsigned int blocksize) in ext4_initialize_dirent_tail() argument
299 struct ext4_dir_entry_tail *t = EXT4_DIRENT_TAIL(bh->b_data, blocksize); in ext4_initialize_dirent_tail()
303 sizeof(struct ext4_dir_entry_tail), blocksize); in ext4_initialize_dirent_tail()
521 ext4_next_entry(struct ext4_dir_entry_2 *p, unsigned long blocksize) in ext4_next_entry() argument
524 ext4_rec_len_from_disk(p->rec_len, blocksize)); in ext4_next_entry()
708 unsigned blocksize = dir->i_sb->s_blocksize; in dx_show_entries() local
726 bh->b_data, blocksize, 0); in dx_show_entries()
[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.c2143 int blocksize = in parse_options() local
2146 if (blocksize < PAGE_SIZE) { in parse_options()
3634 int blocksize, clustersize; in ext4_fill_super() local
3665 blocksize = sb_min_blocksize(sb, EXT4_MIN_BLOCK_SIZE); in ext4_fill_super()
3666 if (!blocksize) { in ext4_fill_super()
3675 if (blocksize != EXT4_MIN_BLOCK_SIZE) { in ext4_fill_super()
3677 offset = do_div(logical_sb_block, blocksize); in ext4_fill_super()
3808 (sbi->s_inode_size > blocksize)) { in ext4_fill_super()
4015 blocksize = BLOCK_SIZE << le32_to_cpu(es->s_log_block_size); in ext4_fill_super()
4016 if (blocksize < EXT4_MIN_BLOCK_SIZE || in ext4_fill_super()
[all …]
/fs/ntfs/
Daops.c180 unsigned int blocksize, vcn_ofs; in ntfs_read_block() local
191 blocksize = vol->sb->s_blocksize; in ntfs_read_block()
195 create_empty_buffers(page, blocksize, 0); in ntfs_read_block()
217 lblock = (ni->allocated_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block()
225 zblock = (init_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block()
324 zero_user(page, i * blocksize, blocksize); in ntfs_read_block()
546 unsigned int blocksize, vcn_ofs; in ntfs_write_block() local
560 blocksize = vol->sb->s_blocksize; in ntfs_write_block()
564 create_empty_buffers(page, blocksize, in ntfs_write_block()
593 dblock = (i_size + blocksize - 1) >> blocksize_bits; in ntfs_write_block()
[all …]
Dfile.c588 unsigned blocksize, u; in ntfs_prepare_pages_for_non_resident_write() local
609 blocksize = vol->sb->s_blocksize; in ntfs_prepare_pages_for_non_resident_write()
620 create_empty_buffers(page, blocksize, 0); in ntfs_prepare_pages_for_non_resident_write()
652 bh_end = bh_pos + blocksize; in ntfs_prepare_pages_for_non_resident_write()
690 blocksize); in ntfs_prepare_pages_for_non_resident_write()
765 blocksize); in ntfs_prepare_pages_for_non_resident_write()
784 blocksize); in ntfs_prepare_pages_for_non_resident_write()
823 zero_user(page, bh_offset(bh), blocksize); in ntfs_prepare_pages_for_non_resident_write()
948 blocksize); in ntfs_prepare_pages_for_non_resident_write()
1174 } while (bh_pos += blocksize, (bh = bh->b_this_page) != head); in ntfs_prepare_pages_for_non_resident_write()
[all …]
/fs/btrfs/
Dblock-rsv.h84 u32 blocksize);
95 u32 blocksize) in btrfs_unuse_block_rsv() argument
97 btrfs_block_rsv_add_bytes(block_rsv, blocksize, false); in btrfs_unuse_block_rsv()
Dblock-rsv.c381 u32 blocksize) in btrfs_use_block_rsv() argument
394 ret = btrfs_block_rsv_use_bytes(block_rsv, blocksize); in btrfs_use_block_rsv()
421 ret = btrfs_reserve_metadata_bytes(root, block_rsv, blocksize, in btrfs_use_block_rsv()
432 ret = btrfs_block_rsv_use_bytes(global_rsv, blocksize); in btrfs_use_block_rsv()
/fs/ext2/
Dsuper.c836 int blocksize = BLOCK_SIZE; in ext2_fill_super() local
867 blocksize = sb_min_blocksize(sb, BLOCK_SIZE); in ext2_fill_super()
868 if (!blocksize) { in ext2_fill_super()
877 if (blocksize != BLOCK_SIZE) { in ext2_fill_super()
878 logic_sb_block = (sb_block*BLOCK_SIZE) / blocksize; in ext2_fill_super()
879 offset = (sb_block*BLOCK_SIZE) % blocksize; in ext2_fill_super()
966 blocksize = BLOCK_SIZE << le32_to_cpu(sbi->s_es->s_log_block_size); in ext2_fill_super()
969 if (!bdev_dax_supported(sb->s_bdev, blocksize)) { in ext2_fill_super()
977 if (sb->s_blocksize != blocksize) { in ext2_fill_super()
980 if (!sb_set_blocksize(sb, blocksize)) { in ext2_fill_super()
[all …]
/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()
Dstree.c390 static int is_leaf(char *buf, int blocksize, struct buffer_head *bh) in is_leaf() argument
407 if (nr < 1 || nr > ((blocksize - BLKH_SIZE) / (IH_SIZE + MIN_ITEM_LEN))) { in is_leaf()
414 used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location(ih)); in is_leaf()
417 if (used_space != blocksize - blkh_free_space(blkh)) { in is_leaf()
429 prev_location = blocksize; in is_leaf()
437 if (ih_location(ih) >= blocksize in is_leaf()
445 || ih_item_len(ih) > MAX_ITEM_LEN(blocksize)) { in is_leaf()
465 static int is_internal(char *buf, int blocksize, struct buffer_head *bh) in is_internal() argument
482 if (nr > (blocksize - BLKH_SIZE - DC_SIZE) / (KEY_SIZE + DC_SIZE)) { in is_internal()
489 if (used_space != blocksize - blkh_free_space(blkh)) { in is_internal()
/fs/sysv/
Ditree.c130 int blocksize = inode->i_sb->s_blocksize; in alloc_branch() local
149 memset(bh->b_data, 0, blocksize); in alloc_branch()
373 unsigned blocksize; in sysv_truncate() local
379 blocksize = inode->i_sb->s_blocksize; in sysv_truncate()
380 iblock = (inode->i_size + blocksize-1) in sysv_truncate()
/fs/minix/
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()
Dminix.h91 static inline unsigned minix_blocks_needed(unsigned bits, unsigned blocksize) in minix_blocks_needed() argument
93 return DIV_ROUND_UP(bits, blocksize * 8); in minix_blocks_needed()
/fs/iomap/
Dfiemap.c135 unsigned blocksize = i_blocksize(inode); in iomap_bmap() local
141 iomap_apply(inode, pos, blocksize, 0, ops, &bno, iomap_bmap_actor); in iomap_bmap()
/fs/udf/
Dinode.c919 unsigned long blocksize = inode->i_sb->s_blocksize; in udf_split_extents() local
927 blocksize - 1) >> blocksize_bits; in udf_split_extents()
964 blocksize; in udf_split_extents()
1079 unsigned long blocksize = inode->i_sb->s_blocksize; in udf_merge_extents() local
1092 blocksize - 1) >> blocksize_bits)))) { in udf_merge_extents()
1096 blocksize - 1) & ~UDF_EXTENT_LENGTH_MASK) { in udf_merge_extents()
1101 ~(blocksize - 1); in udf_merge_extents()
1105 blocksize; in udf_merge_extents()
1115 blocksize - 1) & ~(blocksize - 1)); in udf_merge_extents()
1130 blocksize - 1) >> blocksize_bits); in udf_merge_extents()
[all …]

1234