Home
last modified time | relevance | path

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

12

/fs/befs/
Dsuper.c37 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); in befs_load_sb()
77 if ((befs_sb->block_size != 1024) in befs_check_sb()
78 && (befs_sb->block_size != 2048) in befs_check_sb()
79 && (befs_sb->block_size != 4096) in befs_check_sb()
80 && (befs_sb->block_size != 8192)) { in befs_check_sb()
81 befs_error(sb, "invalid blocksize: %u", befs_sb->block_size); in befs_check_sb()
85 if (befs_sb->block_size > PAGE_SIZE) { in befs_check_sb()
87 "than system pagesize(%lu)", befs_sb->block_size, in befs_check_sb()
97 if ((1 << befs_sb->block_shift) != befs_sb->block_size) { in befs_check_sb()
Dbefs.h33 u32 block_size; member
139 return BEFS_SB(sb)->block_size / sizeof (befs_disk_inode_addr); in befs_iaddrs_per_block()
151 return BEFS_SB(sb)->block_size * run.len; in befs_brun_size()
Ddatastream.c143 plen = ((bytes_read + BEFS_SB(sb)->block_size) < len) ? in befs_read_lsymlink()
144 BEFS_SB(sb)->block_size : len - bytes_read; in befs_read_lsymlink()
176 if (ds->size & (befs_sb->block_size - 1)) in befs_count_blocks()
202 dbl_bytes / (befs_sb->block_size * BEFS_DBLINDIR_BRUN_LEN); in befs_count_blocks()
Dlinuxvfs.c379 inode->i_blocks = befs_sb->block_size / VFS_BLOCK_SIZE; in befs_iget()
391 num_blks * (befs_sb->block_size / VFS_BLOCK_SIZE); in befs_iget()
847 sb_set_blocksize(sb, (ulong) befs_sb->block_size); in befs_fill_super()
Dbefs_fs_types.h117 fs32 block_size; member
/fs/squashfs/
Dsuper.c156 msblk->block_size = le32_to_cpu(sblk->block_size); in squashfs_fill_super()
157 if (msblk->block_size > SQUASHFS_FILE_MAX_SIZE) in squashfs_fill_super()
180 TRACE("Block size %d\n", msblk->block_size); in squashfs_fill_super()
203 msblk->read_page = squashfs_cache_init("data", 1, msblk->block_size); in squashfs_fill_super()
223 SQUASHFS_CACHED_FRAGMENTS, msblk->block_size); in squashfs_fill_super()
308 buf->f_bsize = msblk->block_size; in squashfs_statfs()
Dcache.c122 cache->block_size, cache->pages); in squashfs_cache_get()
234 int block_size) in squashfs_cache_init() argument
253 cache->block_size = block_size; in squashfs_cache_init()
254 cache->pages = block_size >> PAGE_CACHE_SHIFT; in squashfs_cache_init()
Dsquashfs_fs_sb.h34 int block_size; member
71 unsigned int block_size; member
Dfile.c409 (i_size_read(inode) & (msblk->block_size - 1)) : in squashfs_readpage()
410 msblk->block_size; in squashfs_readpage()
442 bytes = i_size_read(inode) & (msblk->block_size - 1); in squashfs_readpage()
Dblock.c92 bh = kcalloc((msblk->block_size >> msblk->devblksize_log2) + 1, in squashfs_read_data()
Dsquashfs_fs.h220 __le32 block_size; member
/fs/ntfs/
Ddir.c357 dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name()
364 dir_ni->itype.index.block_size); in ntfs_lookup_inode_by_name()
367 index_end = (u8*)ia + dir_ni->itype.index.block_size; in ntfs_lookup_inode_by_name()
377 if (index_end > (u8*)ia + dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name()
835 dir_ni->itype.index.block_size) {
842 dir_ni->itype.index.block_size);
845 index_end = (u8*)ia + dir_ni->itype.index.block_size;
855 if (index_end > (u8*)ia + dir_ni->itype.index.block_size) {
1329 ~(s64)(ndir->itype.index.block_size - 1))); in ntfs_readdir()
1345 ~(s64)(ndir->itype.index.block_size - 1)) >> in ntfs_readdir()
[all …]
Dinode.c403 ni->itype.index.block_size = 0; in __ntfs_init_inode()
856 ni->itype.index.block_size = le32_to_cpu(ir->index_block_size); in ntfs_read_locked_inode()
857 if (ni->itype.index.block_size & in ntfs_read_locked_inode()
858 (ni->itype.index.block_size - 1)) { in ntfs_read_locked_inode()
861 ni->itype.index.block_size); in ntfs_read_locked_inode()
864 if (ni->itype.index.block_size > PAGE_CACHE_SIZE) { in ntfs_read_locked_inode()
868 ni->itype.index.block_size, in ntfs_read_locked_inode()
873 if (ni->itype.index.block_size < NTFS_BLOCK_SIZE) { in ntfs_read_locked_inode()
877 ni->itype.index.block_size, in ntfs_read_locked_inode()
883 ffs(ni->itype.index.block_size) - 1; in ntfs_read_locked_inode()
[all …]
Dindex.c313 idx_ni->itype.index.block_size) { in ntfs_index_lookup()
320 idx_ni->itype.index.block_size); in ntfs_index_lookup()
323 index_end = (u8*)ia + idx_ni->itype.index.block_size; in ntfs_index_lookup()
333 if (index_end > (u8*)ia + idx_ni->itype.index.block_size) { in ntfs_index_lookup()
Dcompress.c490 unsigned long flags, block_size = sb->s_blocksize; in ntfs_read_compressed_block() local
495 u32 cb_size = ni->itype.compressed.block_size; in ntfs_read_compressed_block()
536 bhs_size = cb_size / block_size * sizeof(struct buffer_head *); in ntfs_read_compressed_block()
723 memcpy(cb_pos, bhs[i]->b_data, block_size); in ntfs_read_compressed_block()
724 cb_pos += block_size; in ntfs_read_compressed_block()
Dinode.h104 u32 block_size; /* Size of an index block. */ member
115 u32 block_size; /* Size of a compression block member
Dlogfile.c733 unsigned block_size, block_size_bits; in ntfs_empty_logfile() local
749 block_size = sb->s_blocksize; in ntfs_empty_logfile()
811 memset(bh->b_data, -1, block_size); in ntfs_empty_logfile()
Dattrib.c718 unsigned long block_size; in load_attribute_list() local
732 block_size = sb->s_blocksize; in load_attribute_list()
766 if (al + block_size >= al_end) in load_attribute_list()
768 memcpy(al, bh->b_data, block_size); in load_attribute_list()
770 al += block_size; in load_attribute_list()
1717 ni->itype.compressed.block_size = 1U << (a->data. in ntfs_attr_make_non_resident()
1721 ffs(ni->itype.compressed.block_size) - in ntfs_attr_make_non_resident()
1726 ni->itype.compressed.block_size = 0; in ntfs_attr_make_non_resident()
Daops.c144 rec_size = ni->itype.index.block_size; in ntfs_end_buffer_async_read()
927 unsigned int rec_size = ni->itype.index.block_size; in ntfs_write_mst_block()
1303 if (ni->itype.index.block_size == PAGE_CACHE_SIZE) in ntfs_write_mst_block()
1598 end = ofs + ni->itype.index.block_size; in mark_ntfs_record_dirty()
/fs/ufs/
Dsuper.c636 unsigned block_size, super_block_size; in ufs_fill_super() local
694 uspi->s_fsize = block_size = 512; in ufs_fill_super()
704 uspi->s_fsize = block_size = 512; in ufs_fill_super()
714 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
725 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
737 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
748 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
763 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
779 uspi->s_fsize = block_size = 2048; in ufs_fill_super()
795 uspi->s_fsize = block_size = 1024; in ufs_fill_super()
[all …]
/fs/reiserfs/
Ditem_ops.c17 static int sd_bytes_number(struct item_head *ih, int block_size) in sd_bytes_number() argument
122 static int direct_bytes_number(struct item_head *ih, int block_size) in direct_bytes_number() argument
216 static int indirect_bytes_number(struct item_head *ih, int block_size) in indirect_bytes_number() argument
218 return ih_item_len(ih) / UNFM_P_SIZE * block_size; //- get_ih_free_space (ih); in indirect_bytes_number()
360 static int direntry_bytes_number(struct item_head *ih, int block_size) in direntry_bytes_number() argument
643 static int errcatch_bytes_number(struct item_head *ih, int block_size) in errcatch_bytes_number() argument
/fs/partitions/
Dmac.h39 __be16 block_size; member
Dmac.c52 secsize = be16_to_cpu(md->block_size); in mac_partition()
Dibm.c116 blocksize = label->cms.block_size; in ibm_partition()
/fs/ecryptfs/
Dkeystore.c475 size_t block_size; member
529 s->block_size = crypto_blkcipher_blocksize(s->desc.tfm); in ecryptfs_write_tag_70_packet()
534 if ((s->block_aligned_filename_size % s->block_size) != 0) { in ecryptfs_write_tag_70_packet()
535 s->num_rand_bytes += (s->block_size in ecryptfs_write_tag_70_packet()
537 % s->block_size)); in ecryptfs_write_tag_70_packet()
758 size_t block_size; member

12