/fs/befs/ |
D | super.c | 34 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()
|
D | datastream.c | 148 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()
|
D | befs.h | 34 u32 block_size; member 145 return BEFS_SB(sb)->block_size / sizeof(befs_disk_inode_addr); in befs_iaddrs_per_block()
|
/fs/nfsd/ |
D | blocklayoutxdr.c | 107 u32 block_size) in nfsd4_block_decode_layoutupdate() argument 142 if (bex.foff & (block_size - 1)) { in nfsd4_block_decode_layoutupdate() 148 if (bex.len & (block_size - 1)) { in nfsd4_block_decode_layoutupdate() 154 if (bex.soff & (block_size - 1)) { in nfsd4_block_decode_layoutupdate() 179 u32 block_size) in nfsd4_scsi_decode_layoutupdate() argument 207 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate() 214 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate()
|
D | blocklayoutxdr.h | 58 u32 block_size); 60 u32 block_size);
|
/fs/squashfs/ |
D | super.c | 137 msblk->block_size = le32_to_cpu(sblk->block_size); in squashfs_fill_super() 138 if (msblk->block_size > SQUASHFS_FILE_MAX_SIZE) in squashfs_fill_super() 145 if (PAGE_SIZE > msblk->block_size) { in squashfs_fill_super() 147 "currently not supported!", msblk->block_size); in squashfs_fill_super() 157 if (msblk->block_size != (1 << msblk->block_log)) in squashfs_fill_super() 177 TRACE("Block size %d\n", msblk->block_size); in squashfs_fill_super() 203 squashfs_max_decompressors(), msblk->block_size); in squashfs_fill_super() 273 SQUASHFS_CACHED_FRAGMENTS, msblk->block_size); in squashfs_fill_super() 377 buf->f_bsize = msblk->block_size; in squashfs_statfs()
|
D | lzo_wrapper.c | 30 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()
|
D | lz4_wrapper.c | 54 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()
|
D | squashfs_fs_sb.h | 22 int block_size; member 61 unsigned int block_size; member
|
D | cache.c | 224 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/ |
D | hash_algs.c | 18 .block_size = SHA256_BLOCK_SIZE, 23 .block_size = SHA512_BLOCK_SIZE, 78 if (WARN_ON(alg->block_size != crypto_ahash_blocksize(tfm))) in fsverity_get_hash_alg() 135 padded_salt_size = round_up(salt_size, alg->block_size); in fsverity_prepare_hash_state() 192 if (WARN_ON(params->block_size != PAGE_SIZE)) in fsverity_hash_page() 278 BUG_ON(!is_power_of_2(alg->block_size)); in fsverity_check_hash_algs()
|
D | enable.c | 28 if (WARN_ON(params->block_size != PAGE_SIZE)) /* checked earlier too */ in build_merkle_tree_level() 79 if (pending_size + params->digest_size > params->block_size || in build_merkle_tree_level() 83 params->block_size - pending_size); in build_merkle_tree_level() 129 pending_hashes = kmalloc(params->block_size, GFP_KERNEL); in build_merkle_tree() 139 blocks = (inode->i_size + params->block_size - 1) >> in build_merkle_tree() 174 desc->log_blocksize = ilog2(arg->block_size); in enable_verity() 315 if (arg.block_size != PAGE_SIZE) in fsverity_ioctl_enable()
|
D | open.c | 64 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 = (inode->i_size + params->block_size - 1) >> log_blocksize; in fsverity_init_merkle_tree_params()
|
D | fsverity_private.h | 39 unsigned int block_size; /* block size in bytes, e.g. 64 for SHA-256 */ member 47 unsigned int block_size; /* size of data and tree blocks */ member
|
/fs/isofs/ |
D | compress.c | 49 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/ |
D | dir.c | 344 dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name() 351 dir_ni->itype.index.block_size); in ntfs_lookup_inode_by_name() 354 index_end = (u8*)ia + dir_ni->itype.index.block_size; in ntfs_lookup_inode_by_name() 364 if (index_end > (u8*)ia + dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name() 822 dir_ni->itype.index.block_size) { 829 dir_ni->itype.index.block_size); 832 index_end = (u8*)ia + dir_ni->itype.index.block_size; 842 if (index_end > (u8*)ia + dir_ni->itype.index.block_size) { 1297 ~(s64)(ndir->itype.index.block_size - 1))); in ntfs_readdir() 1313 ~(s64)(ndir->itype.index.block_size - 1)) >> in ntfs_readdir() [all …]
|
D | inode.c | 384 ni->itype.index.block_size = 0; in __ntfs_init_inode() 830 ni->itype.index.block_size = le32_to_cpu(ir->index_block_size); in ntfs_read_locked_inode() 831 if (ni->itype.index.block_size & in ntfs_read_locked_inode() 832 (ni->itype.index.block_size - 1)) { in ntfs_read_locked_inode() 835 ni->itype.index.block_size); in ntfs_read_locked_inode() 838 if (ni->itype.index.block_size > PAGE_SIZE) { in ntfs_read_locked_inode() 842 ni->itype.index.block_size, in ntfs_read_locked_inode() 847 if (ni->itype.index.block_size < NTFS_BLOCK_SIZE) { in ntfs_read_locked_inode() 851 ni->itype.index.block_size, in ntfs_read_locked_inode() 857 ffs(ni->itype.index.block_size) - 1; in ntfs_read_locked_inode() [all …]
|
D | index.c | 301 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()
|
D | compress.c | 471 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()
|
D | inode.h | 90 u32 block_size; /* Size of an index block. */ member 101 u32 block_size; /* Size of a compression block member
|
/fs/reiserfs/ |
D | tail_conversion.c | 213 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()
|
D | item_ops.c | 19 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/pstore/ |
D | ram_core.c | 129 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() 591 prz->ecc_info.ecc_size, prz->ecc_info.block_size); in persistent_ram_new()
|
/fs/ufs/ |
D | super.c | 787 unsigned block_size, super_block_size; in ufs_fill_super() local 853 uspi->s_fsize = block_size = 512; in ufs_fill_super() 863 uspi->s_fsize = block_size = 512; in ufs_fill_super() 876 uspi->s_fsize = block_size = 1024; in ufs_fill_super() 887 uspi->s_fsize = block_size = 1024; in ufs_fill_super() 899 uspi->s_fsize = block_size = 1024; in ufs_fill_super() 910 uspi->s_fsize = block_size = 1024; in ufs_fill_super() 925 uspi->s_fsize = block_size = 1024; in ufs_fill_super() 941 uspi->s_fsize = block_size = 2048; in ufs_fill_super() 957 uspi->s_fsize = block_size = 1024; in ufs_fill_super() [all …]
|
/fs/iomap/ |
D | buffered-io.c | 70 unsigned block_size = (1 << block_bits); in iomap_adjust_read_range() local 88 *pos += block_size; in iomap_adjust_read_range() 89 poff += block_size; in iomap_adjust_read_range() 90 plen -= block_size; in iomap_adjust_read_range() 97 plen -= (last - i + 1) * block_size; in iomap_adjust_read_range() 113 plen -= (last - end) * block_size; in iomap_adjust_read_range() 554 loff_t block_size = i_blocksize(inode); in __iomap_write_begin() local 555 loff_t block_start = pos & ~(block_size - 1); in __iomap_write_begin() 556 loff_t block_end = (pos + len + block_size - 1) & ~(block_size - 1); in __iomap_write_begin()
|