Home
last modified time | relevance | path

Searched refs:s_blocksize (Results 1 – 25 of 98) sorted by relevance

1234

/linux/fs/ext4/
H A Dmballoc-test.c196 sb->s_blocksize = 1UL << layout->blocksize_bits; in mbt_init_sb_layout()
223 mb_set_bits(grp_ctx->bitmap_bh.b_data, max, sb->s_blocksize * 8 - max); in mbt_grp_ctx_init()
573 memset(bitmap, 0, sb->s_blocksize); in test_mark_diskspace_used_range()
617 memset(buddy, 0xff, sb->s_blocksize); in mbt_generate_buddy()
713 memset(ext4_buddy, 0xff, sb->s_blocksize); in do_test_generate_buddy()
717 KUNIT_ASSERT_EQ(test, memcmp(mbt_buddy, ext4_buddy, sb->s_blocksize), in do_test_generate_buddy()
730 bitmap = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL); in test_mb_generate_buddy()
732 expected_bb = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL); in test_mb_generate_buddy()
734 generate_bb = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL); in test_mb_generate_buddy()
774 memset(buddy, 0xff, sb->s_blocksize); in test_mb_mark_used_range()
[all …]
H A Dsuper.c281 sb->s_blocksize, GFP_NOWAIT); in ext4_sb_breadahead_unmovable()
3154 sb->s_blocksize, in ext4_setup_super()
3570 if (sb->s_blocksize == 1024 && nr == 0 && in descriptor_loc()
4238 char *buf = kvmalloc(sb->s_blocksize, GFP_NOFS | __GFP_ZERO); in ext4_calculate_overhead()
4263 memset(buf, 0, sb->s_blocksize); in ext4_calculate_overhead()
4451 if (clustersize < sb->s_blocksize) { in ext4_handle_clustersize()
4454 "block size (%lu)", clustersize, sb->s_blocksize); in ext4_handle_clustersize()
4460 if (clustersize != sb->s_blocksize) { in ext4_handle_clustersize()
4463 "block size (%lu)", clustersize, sb->s_blocksize); in ext4_handle_clustersize()
4466 if (sbi->s_blocks_per_group > sb->s_blocksize * 8) { in ext4_handle_clustersize()
[all …]
/linux/fs/freevxfs/
H A Dvxfs_olt.c35 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock()
36 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock()
81 eaddr = bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
H A Dvxfs_inode.c148 block = extent + ((ino * VXFS_ISIZE) / sbp->s_blocksize); in vxfs_blkiget()
149 offset = ((ino % (sbp->s_blocksize / VXFS_ISIZE)) * VXFS_ISIZE); in vxfs_blkiget()
H A Dvxfs_inode.h29 ((sbp)->s_blocksize / sizeof(struct vxfs_typed))
/linux/fs/omfs/
H A Dbitmap.c13 int nbits = sb->s_blocksize * 8; in omfs_count_free()
95 int bits_per_entry = 8 * sb->s_blocksize; in omfs_allocate_block()
137 int bits_per_entry = 8 * sb->s_blocksize; in omfs_allocate_range()
178 int bits_per_entry = 8 * sb->s_blocksize; in omfs_clear_range()
H A Domfs_fs.h29 __be32 s_blocksize; /* size of a block */ member
H A Domfs.h15 u32 s_blocksize; member
/linux/fs/udf/
H A Dinode.c527 if (last_ext->extLength & (sb->s_blocksize - 1)) { in udf_do_extend_file()
531 sb->s_blocksize - 1) & ~(sb->s_blocksize - 1)); in udf_do_extend_file()
533 (iinfo->i_lenExtents + sb->s_blocksize - 1) & in udf_do_extend_file()
534 ~(sb->s_blocksize - 1); in udf_do_extend_file()
541 add = (1 << 30) - sb->s_blocksize - in udf_do_extend_file()
584 add = (1 << 30) - sb->s_blocksize; in udf_do_extend_file()
702 (newsize & (sb->s_blocksize - 1)); in udf_extend_file()
785 ((elen + inode->i_sb->s_blocksize - 1) >> in inode_getblk()
808 if (elen & (inode->i_sb->s_blocksize - 1)) { in inode_getblk()
810 ((elen + inode->i_sb->s_blocksize - 1) & in inode_getblk()
[all …]
H A Dialloc.c51 iinfo->i_data = kzalloc(inode->i_sb->s_blocksize - in udf_new_inode()
56 iinfo->i_data = kzalloc(inode->i_sb->s_blocksize - in udf_new_inode()
H A Dmisc.c43 offset = inode->i_sb->s_blocksize - udf_file_entry_alloc_offset(inode) - in udf_add_extendedattr()
233 if (le16_to_cpu(tag_p->descCRCLength) + sizeof(struct tag) > sb->s_blocksize) { in udf_read_tagged()
/linux/fs/minix/
H A Dbitmap.c74 int bits_per_zone = 8 * inode->i_sb->s_blocksize; in minix_new_block()
102 return (count_free(sbi->s_zmap, sb->s_blocksize, bits) in minix_count_free_blocks()
136 int minix2_inodes_per_block = sb->s_blocksize / sizeof(struct minix2_inode); in minix_V2_raw_inode()
219 int bits_per_zone = 8 * sb->s_blocksize; in minix_new_inode()
268 return count_free(sbi->s_imap, sb->s_blocksize, bits); in minix_count_free_inodes()
H A Ditree_v2.c37 if ((u64)block * (u64)sb->s_blocksize >= sb->s_maxbytes) in block_to_path()
/linux/fs/jfs/
H A Dxattr.c225 nblocks = (size + (sb->s_blocksize - 1)) >> sb->s_blocksize_bits; in ea_write()
253 ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits)) in ea_write()
393 ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits)) in ea_read()
475 current_blocks = (ea_size + sb->s_blocksize - 1) >> in ea_get()
486 ea_buf->max_size = (size + sb->s_blocksize - 1) & in ea_get()
487 ~(sb->s_blocksize - 1); in ea_get()
505 blocks_needed = (min_size + sb->s_blocksize - 1) >> in ea_get()
537 ea_buf->max_size = (min_size + sb->s_blocksize - 1) & in ea_get()
538 ~(sb->s_blocksize - 1); in ea_get()
557 ea_buf->max_size = (ea_size + sb->s_blocksize - 1) & in ea_get()
[all …]
H A Dsuper.c559 sb->s_maxbytes = min(((loff_t)sb->s_blocksize) << 40, MAX_LFS_FILESIZE); in jfs_fill_super()
700 int offset = off & (sb->s_blocksize - 1); in jfs_quota_read()
713 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); in jfs_quota_read()
744 int offset = off & (sb->s_blocksize - 1); in jfs_quota_write()
752 tocopy = min_t(size_t, sb->s_blocksize - offset, towrite); in jfs_quota_write()
759 if (offset || tocopy != sb->s_blocksize) in jfs_quota_write()
/linux/fs/adfs/
H A Dsuper.c186 buf->f_bsize = sb->s_blocksize; in adfs_statfs()
267 if (sb->s_blocksize != blocksize && in adfs_probe()
293 if (sb->s_blocksize == blocksize) { in adfs_probe()
311 b_data = bh->b_data + (ADFS_DISCRECORD % sb->s_blocksize); in adfs_validate_bblk()
H A Ddir_fplus.c112 ret = adfs_dir_read_buffers(sb, indaddr, sb->s_blocksize, dir); in adfs_fplus_read()
136 (dir->bhs[dir->nr_buffers - 1]->b_data + (sb->s_blocksize - 8)); in adfs_fplus_read()
/linux/fs/ntfs3/
H A Dbitmap.c504 u32 blocksize = sb->s_blocksize; in wnd_rescan()
506 u32 wbits = 8 * sb->s_blocksize; in wnd_rescan()
664 u32 blocksize = sb->s_blocksize; in wnd_init()
730 u32 wbits = 8 * sb->s_blocksize; in wnd_set_free()
773 u32 wbits = 8 * sb->s_blocksize; in wnd_set_used()
854 u32 wbits = 8 * sb->s_blocksize; in wnd_is_free_hlp()
924 u32 wbits = 8 * sb->s_blocksize; in wnd_is_used()
1138 wbits = sb->s_blocksize * 8; in wnd_find()
1328 u32 blocksize = sb->s_blocksize; in wnd_extend()
1425 u32 wbits = 8 * sb->s_blocksize; in ntfs_trim_fs()
/linux/fs/erofs/
H A Dinode.c81 if (ofs + vi->inode_isize <= sb->s_blocksize) { in erofs_read_inode()
87 const unsigned int gotten = sb->s_blocksize - ofs; in erofs_read_inode()
187 inode->i_blocks = round_up(inode->i_size, sb->s_blocksize) >> 9; in erofs_read_inode()
H A Dsuper.c112 cnt = min_t(int, sb->s_blocksize - erofs_blkoff(sb, *offset), in erofs_read_metadata()
680 sb->s_blocksize = PAGE_SIZE; in erofs_fc_fill_super()
712 sb->s_blocksize = 1 << sbi->blkszbits; in erofs_fc_fill_super()
721 if (sbi->dif0.fsoff & (sb->s_blocksize - 1)) in erofs_fc_fill_super()
723 sbi->dif0.fsoff, sb->s_blocksize); in erofs_fc_fill_super()
1068 buf->f_bsize = sb->s_blocksize; in erofs_statfs()
/linux/include/uapi/linux/
H A Dminix_fs.h94 __u16 s_blocksize; member
/linux/fs/nfs/
H A Dsuper.c278 buf->f_frsize = dentry->d_sb->s_blocksize; in nfs_statfs()
287 buf->f_bsize = dentry->d_sb->s_blocksize; in nfs_statfs()
1073 sb->s_blocksize = 0; in nfs_fill_super()
1077 sb->s_blocksize = in nfs_fill_super()
1113 if (sb->s_blocksize == 0) in nfs_fill_super()
1114 sb->s_blocksize = nfs_block_bits(server->wsize, in nfs_fill_super()
/linux/fs/ocfs2/
H A Dblockcheck.c568 ocfs2_block_check_compute(data, sb->s_blocksize, bc); in ocfs2_compute_meta_ecc()
578 rc = ocfs2_block_check_validate(data, sb->s_blocksize, bc, in ocfs2_validate_meta_ecc()
/linux/fs/configfs/
H A Dmount.c68 sb->s_blocksize = PAGE_SIZE; in configfs_fill_super()
/linux/fs/qnx6/
H A Dsuper_mmi.c138 sbi->s_blks_off = QNX6_SUPERBLOCK_AREA / s->s_blocksize; in qnx6_mmi_fill_super()

1234