Home
last modified time | relevance | path

Searched refs:block_size (Results 1 – 25 of 56) sorted by relevance

123

/fs/befs/
Dsuper.c34 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); in befs_load_sb()
76 if ((befs_sb->block_size != 1024) in befs_check_sb()
77 && (befs_sb->block_size != 2048) in befs_check_sb()
78 && (befs_sb->block_size != 4096) in befs_check_sb()
79 && (befs_sb->block_size != 8192)) { in befs_check_sb()
80 befs_error(sb, "invalid blocksize: %u", befs_sb->block_size); in befs_check_sb()
84 if (befs_sb->block_size > PAGE_SIZE) { in befs_check_sb()
86 "than system pagesize(%lu)", befs_sb->block_size, in befs_check_sb()
96 if ((1 << befs_sb->block_shift) != befs_sb->block_size) { in befs_check_sb()
Ddatastream.c148 plen = ((bytes_read + BEFS_SB(sb)->block_size) < len) ? in befs_read_lsymlink()
149 BEFS_SB(sb)->block_size : len - bytes_read; in befs_read_lsymlink()
182 if (ds->size & (befs_sb->block_size - 1)) in befs_count_blocks()
208 dbl_bytes / (befs_sb->block_size * BEFS_DBLINDIR_BRUN_LEN); in befs_count_blocks()
Dbefs.h34 u32 block_size; member
145 return BEFS_SB(sb)->block_size / sizeof(befs_disk_inode_addr); in befs_iaddrs_per_block()
/fs/ntfs3/lib/
Dlzx_decompress.c352 u32 block_size; in lzx_read_block_header() local
364 block_size = LZX_DEFAULT_BLOCK_SIZE; in lzx_read_block_header()
366 block_size = 0; in lzx_read_block_header()
367 block_size |= bitstream_read_bits(is, 8); in lzx_read_block_header()
368 block_size <<= 8; in lzx_read_block_header()
369 block_size |= bitstream_read_bits(is, 8); in lzx_read_block_header()
466 *block_size_ret = block_size; in lzx_read_block_header()
473 int block_type, u32 block_size, in lzx_decompress_block() argument
477 u8 * const block_end = out_next + block_size; in lzx_decompress_block()
612 u32 block_size; in lzx_decompress() local
[all …]
/fs/nfsd/
Dblocklayoutxdr.c116 u32 block_size) in nfsd4_block_decode_layoutupdate() argument
151 if (bex.foff & (block_size - 1)) { in nfsd4_block_decode_layoutupdate()
157 if (bex.len & (block_size - 1)) { in nfsd4_block_decode_layoutupdate()
163 if (bex.soff & (block_size - 1)) { in nfsd4_block_decode_layoutupdate()
188 u32 block_size) in nfsd4_scsi_decode_layoutupdate() argument
216 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate()
223 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate()
Dblocklayoutxdr.h58 u32 block_size);
60 u32 block_size);
/fs/squashfs/
Dsuper.c187 msblk->block_size = le32_to_cpu(sblk->block_size); in squashfs_fill_super()
188 if (msblk->block_size > SQUASHFS_FILE_MAX_SIZE) in squashfs_fill_super()
195 if (PAGE_SIZE > msblk->block_size) { in squashfs_fill_super()
197 "currently not supported!", msblk->block_size); in squashfs_fill_super()
207 if (msblk->block_size != (1 << msblk->block_log)) in squashfs_fill_super()
228 TRACE("Block size %d\n", msblk->block_size); in squashfs_fill_super()
254 squashfs_max_decompressors(), msblk->block_size); in squashfs_fill_super()
336 SQUASHFS_CACHED_FRAGMENTS, msblk->block_size); in squashfs_fill_super()
476 buf->f_bsize = msblk->block_size; in squashfs_statfs()
Dlzo_wrapper.c30 int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE); in lzo_init() local
35 stream->input = vmalloc(block_size); in lzo_init()
38 stream->output = vmalloc(block_size); in lzo_init()
Dlz4_wrapper.c54 int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE); in lz4_init() local
60 stream->input = vmalloc(block_size); in lz4_init()
63 stream->output = vmalloc(block_size); in lz4_init()
Dsquashfs_fs_sb.h22 int block_size; member
62 unsigned int block_size; member
Dcache.c224 int block_size) in squashfs_cache_init() argument
244 cache->block_size = block_size; in squashfs_cache_init()
245 cache->pages = block_size >> PAGE_SHIFT; in squashfs_cache_init()
/fs/verity/
Dhash_algs.c18 .block_size = SHA256_BLOCK_SIZE,
23 .block_size = SHA512_BLOCK_SIZE,
87 if (WARN_ON(alg->block_size != crypto_ahash_blocksize(tfm))) in fsverity_get_hash_alg()
184 padded_salt_size = round_up(salt_size, alg->block_size); in fsverity_prepare_hash_state()
241 if (WARN_ON(params->block_size != PAGE_SIZE)) in fsverity_hash_page()
326 BUG_ON(!is_power_of_2(alg->block_size)); in fsverity_check_hash_algs()
Denable.c58 if (WARN_ON(params->block_size != PAGE_SIZE)) /* checked earlier too */ in build_merkle_tree_level()
117 if (pending_size + params->digest_size > params->block_size || in build_merkle_tree_level()
121 params->block_size - pending_size); in build_merkle_tree_level()
171 pending_hashes = kmalloc(params->block_size, GFP_KERNEL); in build_merkle_tree()
180 blocks = ((u64)inode->i_size + params->block_size - 1) >> in build_merkle_tree()
215 desc->log_blocksize = ilog2(arg->block_size); in enable_verity()
356 if (arg.block_size != PAGE_SIZE) in fsverity_ioctl_enable()
Dopen.c64 params->block_size = 1 << log_blocksize; in fsverity_init_merkle_tree_params()
70 if (params->block_size < 2 * params->digest_size) { in fsverity_init_merkle_tree_params()
73 params->block_size, hash_alg->name); in fsverity_init_merkle_tree_params()
81 hash_alg->name, params->block_size, params->hashes_per_block, in fsverity_init_merkle_tree_params()
92 blocks = ((u64)inode->i_size + params->block_size - 1) >> log_blocksize; in fsverity_init_merkle_tree_params()
Dfsverity_private.h40 unsigned int block_size; /* block size in bytes, e.g. 64 for SHA-256 */ member
49 unsigned int block_size; /* size of data and tree blocks */ member
/fs/isofs/
Dcompress.c49 int i, block_size = block_end - block_start; in zisofs_uncompress_block() local
54 int needblocks = (block_size + (block_start & bufmask) + bufmask) in zisofs_uncompress_block()
61 if (block_size > deflateBound(1UL << zisofs_block_shift)) { in zisofs_uncompress_block()
66 if (block_size == 0) { in zisofs_uncompress_block()
142 block_size); in zisofs_uncompress_block()
143 block_size -= stream.avail_in; in zisofs_uncompress_block()
/fs/ntfs/
Ddir.c345 dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name()
352 dir_ni->itype.index.block_size); in ntfs_lookup_inode_by_name()
355 index_end = (u8*)ia + dir_ni->itype.index.block_size; in ntfs_lookup_inode_by_name()
365 if (index_end > (u8*)ia + dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name()
823 dir_ni->itype.index.block_size) {
830 dir_ni->itype.index.block_size);
833 index_end = (u8*)ia + dir_ni->itype.index.block_size;
843 if (index_end > (u8*)ia + dir_ni->itype.index.block_size) {
1298 ~(s64)(ndir->itype.index.block_size - 1))); in ntfs_readdir()
1314 ~(s64)(ndir->itype.index.block_size - 1)) >> in ntfs_readdir()
[all …]
Dinode.c385 ni->itype.index.block_size = 0; in __ntfs_init_inode()
837 ni->itype.index.block_size = le32_to_cpu(ir->index_block_size); in ntfs_read_locked_inode()
838 if (ni->itype.index.block_size & in ntfs_read_locked_inode()
839 (ni->itype.index.block_size - 1)) { in ntfs_read_locked_inode()
842 ni->itype.index.block_size); in ntfs_read_locked_inode()
845 if (ni->itype.index.block_size > PAGE_SIZE) { in ntfs_read_locked_inode()
849 ni->itype.index.block_size, in ntfs_read_locked_inode()
854 if (ni->itype.index.block_size < NTFS_BLOCK_SIZE) { in ntfs_read_locked_inode()
858 ni->itype.index.block_size, in ntfs_read_locked_inode()
864 ffs(ni->itype.index.block_size) - 1; in ntfs_read_locked_inode()
[all …]
Dindex.c301 idx_ni->itype.index.block_size) { in ntfs_index_lookup()
308 idx_ni->itype.index.block_size); in ntfs_index_lookup()
311 index_end = (u8*)ia + idx_ni->itype.index.block_size; in ntfs_index_lookup()
321 if (index_end > (u8*)ia + idx_ni->itype.index.block_size) { in ntfs_index_lookup()
Dcompress.c471 unsigned long flags, block_size = sb->s_blocksize; in ntfs_read_compressed_block() local
476 u32 cb_size = ni->itype.compressed.block_size; in ntfs_read_compressed_block()
519 bhs_size = cb_size / block_size * sizeof(struct buffer_head *); in ntfs_read_compressed_block()
707 memcpy(cb_pos, bhs[i]->b_data, block_size); in ntfs_read_compressed_block()
708 cb_pos += block_size; in ntfs_read_compressed_block()
/fs/reiserfs/
Dtail_conversion.c213 unsigned long block_size = sb->s_blocksize; in indirect2direct() local
228 tail_len = (n_new_file_size & (block_size - 1)); in indirect2direct()
294 return block_size - round_tail_len; in indirect2direct()
317 return block_size - round_tail_len; in indirect2direct()
Ditem_ops.c19 static int sd_bytes_number(struct item_head *ih, int block_size) in sd_bytes_number() argument
114 static int direct_bytes_number(struct item_head *ih, int block_size) in direct_bytes_number() argument
205 static int indirect_bytes_number(struct item_head *ih, int block_size) in indirect_bytes_number() argument
207 return ih_item_len(ih) / UNFM_P_SIZE * block_size; in indirect_bytes_number()
349 static int direntry_bytes_number(struct item_head *ih, int block_size) in direntry_bytes_number() argument
636 static int errcatch_bytes_number(struct item_head *ih, int block_size) in errcatch_bytes_number() argument
/fs/btrfs/
Dreflink.c57 const u32 block_size = fs_info->sectorsize; in copy_inline_to_page() local
58 const u64 range_end = file_offset + block_size - 1; in copy_inline_to_page()
66 ASSERT(IS_ALIGNED(file_offset, block_size)); in copy_inline_to_page()
75 block_size); in copy_inline_to_page()
135 if (datal < block_size) { in copy_inline_to_page()
136 memzero_page(page, datal, block_size - datal); in copy_inline_to_page()
140 btrfs_page_set_uptodate(fs_info, page, file_offset, block_size); in copy_inline_to_page()
142 btrfs_page_set_dirty(fs_info, page, file_offset, block_size); in copy_inline_to_page()
150 block_size, true); in copy_inline_to_page()
151 btrfs_delalloc_release_extents(inode, block_size); in copy_inline_to_page()
/fs/ufs/
Dsuper.c786 unsigned block_size, super_block_size; in ufs_fill_super() local
852 uspi->s_fsize = block_size = 512; in ufs_fill_super()
862 uspi->s_fsize = block_size = 512; in ufs_fill_super()
875 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
886 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
898 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
909 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
924 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
940 uspi->s_fsize = block_size = 2048; in ufs_fill_super()
956 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
[all …]
/fs/pstore/
Dram_core.c129 int ecc_block_size = prz->ecc_info.block_size; in persistent_ram_update_ecc()
172 int size = prz->ecc_info.block_size; in persistent_ram_ecc_old()
183 block += prz->ecc_info.block_size; in persistent_ram_ecc_old()
199 prz->ecc_info.block_size = ecc_info->block_size ?: 128; in persistent_ram_init_ecc()
205 prz->ecc_info.block_size + in persistent_ram_init_ecc()
609 prz->ecc_info.ecc_size, prz->ecc_info.block_size); in persistent_ram_new()

123