Home
last modified time | relevance | path

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

12345678910

/kernel/linux/linux-5.10/fs/udf/
Dballoc.c138 bit = block % (sb->s_blocksize << 3); in udf_bitmap_free_blocks()
143 if (bit + count > (sb->s_blocksize << 3)) { in udf_bitmap_free_blocks()
144 overflow = bit + count - (sb->s_blocksize << 3); in udf_bitmap_free_blocks()
200 bit = block % (sb->s_blocksize << 3); in udf_bitmap_prealloc_blocks()
202 while (bit < (sb->s_blocksize << 3) && block_count > 0) { in udf_bitmap_prealloc_blocks()
249 sb->s_blocksize - group_start); in udf_bitmap_new_block()
251 if ((ptr - ((char *)bh->b_data)) < sb->s_blocksize) { in udf_bitmap_new_block()
252 bit = block % (sb->s_blocksize << 3); in udf_bitmap_new_block()
262 sb->s_blocksize - ((bit + 7) >> 3)); in udf_bitmap_new_block()
264 if (newbit < sb->s_blocksize << 3) { in udf_bitmap_new_block()
[all …]
Ddirectory.c41 dir->i_sb->s_blocksize, in udf_fileident_read()
54 if (fibh->eoffset == dir->i_sb->s_blocksize) { in udf_fileident_read()
102 fi = udf_get_fileident(fibh->sbh->b_data, dir->i_sb->s_blocksize, in udf_fileident_read()
110 if (fibh->eoffset <= dir->i_sb->s_blocksize) { in udf_fileident_read()
113 } else if (fibh->eoffset > dir->i_sb->s_blocksize) { in udf_fileident_read()
129 fibh->soffset -= dir->i_sb->s_blocksize; in udf_fileident_read()
130 fibh->eoffset -= dir->i_sb->s_blocksize; in udf_fileident_read()
Dnamei.c190 fibh->soffset = fibh->eoffset = f_pos & (sb->s_blocksize - 1); in udf_find_entry()
376 fibh->soffset = fibh->eoffset = f_pos & (dir->i_sb->s_blocksize - 1); in udf_add_entry()
383 fibh->soffset = fibh->eoffset = sb->s_blocksize; in udf_add_entry()
435 sb->s_blocksize - fibh->eoffset < nfidlen) { in udf_add_entry()
455 if (sb->s_blocksize - fibh->eoffset >= nfidlen) { in udf_add_entry()
478 elen = (elen + sb->s_blocksize - 1) & ~(sb->s_blocksize - 1); in udf_add_entry()
484 dinfo->i_lenExtents = (dinfo->i_lenExtents + sb->s_blocksize in udf_add_entry()
485 - 1) & ~(sb->s_blocksize - 1); in udf_add_entry()
487 fibh->soffset = fibh->eoffset - sb->s_blocksize; in udf_add_entry()
488 fibh->eoffset += nfidlen - sb->s_blocksize; in udf_add_entry()
[all …]
Dinode.c367 memset(dbh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_expand_dir_adinicb()
373 f_pos & (inode->i_sb->s_blocksize - 1); in udf_expand_dir_adinicb()
468 memset(bh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_getblk()
502 if (last_ext->extLength & (sb->s_blocksize - 1)) { in udf_do_extend_file()
506 sb->s_blocksize - 1) & ~(sb->s_blocksize - 1)); in udf_do_extend_file()
508 (iinfo->i_lenExtents + sb->s_blocksize - 1) & in udf_do_extend_file()
509 ~(sb->s_blocksize - 1); in udf_do_extend_file()
528 add = (1 << 30) - sb->s_blocksize - in udf_do_extend_file()
563 add = (1 << 30) - sb->s_blocksize; in udf_do_extend_file()
618 (last_ext->extLength & (sb->s_blocksize - 1)); in udf_do_extend_final_block()
[all …]
Dtruncate.c34 int last_block = (elen + inode->i_sb->s_blocksize - 1) >> in extent_trunc()
36 int first_block = (nelen + inode->i_sb->s_blocksize - 1) >> in extent_trunc()
96 if (lbcount - inode->i_size >= inode->i_sb->s_blocksize) in udf_truncate_tail_extent()
223 (inode->i_size & (sb->s_blocksize - 1)); in udf_truncate_extents()
268 (elen + sb->s_blocksize - 1) >> in udf_truncate_extents()
/kernel/linux/linux-5.10/fs/reiserfs/
Dresize.c69 (reiserfs_bmap_count(s) - 1) * s->s_blocksize * 8; in reiserfs_resize()
72 bmap_nr_new = block_count_new / (s->s_blocksize * 8); in reiserfs_resize()
73 block_r_new = block_count_new - bmap_nr_new * s->s_blocksize * 8; in reiserfs_resize()
77 block_r_new = s->s_blocksize * 8; in reiserfs_resize()
149 bh = sb_bread(s, i * s->s_blocksize * 8); in reiserfs_resize()
193 for (i = block_r; i < s->s_blocksize * 8; i++) in reiserfs_resize()
195 info->free_count += s->s_blocksize * 8 - block_r; in reiserfs_resize()
211 for (i = block_r_new; i < s->s_blocksize * 8; i++) in reiserfs_resize()
216 info->free_count -= s->s_blocksize * 8 - block_r_new; in reiserfs_resize()
Dtail_conversion.c52 blk_size = sb->s_blocksize; in direct2indirect()
213 unsigned long block_size = sb->s_blocksize; in indirect2direct()
236 1) * sb->s_blocksize; in indirect2direct()
258 1) * sb->s_blocksize; in indirect2direct()
Dsuper.c456 set_cpu_key_k_offset(&key, 1 + inode->i_sb->s_blocksize); in add_save_link()
461 1 + inode->i_sb->s_blocksize, TYPE_DIRECT, in add_save_link()
527 1 + inode->i_sb->s_blocksize); in remove_save_link()
1612 bh = sb_bread(s, offset / s->s_blocksize); in read_super_block()
1616 s->s_id, offset / s->s_blocksize, in read_super_block()
1617 s->s_blocksize); in read_super_block()
1633 bh = sb_bread(s, offset / s->s_blocksize); in read_super_block()
1637 s->s_id, offset / s->s_blocksize, in read_super_block()
1638 s->s_blocksize); in read_super_block()
1643 if (sb_blocksize(rs) != s->s_blocksize) { in read_super_block()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Docfs2_fs.h1243 return sb->s_blocksize - in ocfs2_fast_symlink_chars()
1253 return sb->s_blocksize - in ocfs2_max_inline_data_with_xattr()
1257 return sb->s_blocksize - in ocfs2_max_inline_data_with_xattr()
1265 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode()
1279 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode_with_xattr()
1283 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode_with_xattr()
1293 size = sb->s_blocksize - in ocfs2_extent_recs_per_dx_root()
1303 size = sb->s_blocksize - in ocfs2_chain_recs_per_inode()
1313 size = sb->s_blocksize - in ocfs2_extent_recs_per_eb()
1323 size = sb->s_blocksize - in ocfs2_extent_recs_per_gd()
[all …]
Ddir.c99 return sb->s_blocksize - sizeof(struct ocfs2_dir_block_trailer); in ocfs2_dir_trailer_blk_off()
314 ((char *) de - bh->b_data) + rlen > dir->i_sb->s_blocksize)) in ocfs2_check_dir_entry()
729 bh->b_data, sb->s_blocksize, in ocfs2_find_entry_el()
971 dir->i_sb->s_blocksize, &dir_ent); in ocfs2_dx_dir_search()
1594 unsigned int size = sb->s_blocksize; in __ocfs2_add_entry()
1819 offset = ctx->pos & (sb->s_blocksize - 1); in ocfs2_dir_foreach_blk_el()
1825 ctx->pos += sb->s_blocksize - offset; in ocfs2_dir_foreach_blk_el()
1852 for (i = 0; i < sb->s_blocksize && i < offset; ) { in ocfs2_dir_foreach_blk_el()
1866 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ocfs2_dir_foreach_blk_el()
1872 && offset < sb->s_blocksize) { in ocfs2_dir_foreach_blk_el()
[all …]
/kernel/linux/linux-5.10/fs/ext4/
Ddir.c74 dir->i_sb->s_blocksize); in __ext4_check_dir_entry()
164 offset = ctx->pos & (sb->s_blocksize - 1); in ext4_readdir()
173 ctx->pos += map.m_len * sb->s_blocksize; in ext4_readdir()
197 ctx->pos += sb->s_blocksize - offset; in ext4_readdir()
207 ctx->pos += sb->s_blocksize - offset; in ext4_readdir()
219 for (i = 0; i < sb->s_blocksize && i < offset; ) { in ext4_readdir()
229 sb->s_blocksize) < EXT4_DIR_REC_LEN(1)) in ext4_readdir()
232 sb->s_blocksize); in ext4_readdir()
235 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ext4_readdir()
241 && offset < sb->s_blocksize) { in ext4_readdir()
[all …]
Dmigrate.c97 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_ind_extent_range()
126 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_dind_extent_range()
156 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_tind_extent_range()
186 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in free_dind_blocks()
226 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in free_tind_blocks()
509 max_entries = inode->i_sb->s_blocksize >> 2; in ext4_ext_migrate()
/kernel/linux/linux-5.10/fs/omfs/
Dinode.c281 buf->f_bsize = sbi->s_blocksize; in omfs_statfs()
346 array_size = DIV_ROUND_UP(bitmap_size, sb->s_blocksize); in omfs_get_imap()
361 for (count = bitmap_size; count > 0; count -= sb->s_blocksize) { in omfs_get_imap()
365 *ptr = kmemdup(bh->b_data, sb->s_blocksize, GFP_KERNEL); in omfs_get_imap()
370 if (count < sb->s_blocksize) in omfs_get_imap()
372 sb->s_blocksize - count); in omfs_get_imap()
500 sbi->s_blocksize = be32_to_cpu(omfs_sb->s_blocksize); in omfs_fill_super()
518 if (sbi->s_blocksize < sbi->s_sys_blocksize || in omfs_fill_super()
519 sbi->s_blocksize > OMFS_MAX_BLOCK_SIZE) { in omfs_fill_super()
521 sbi->s_blocksize); in omfs_fill_super()
[all …]
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()
/kernel/linux/linux-5.10/include/linux/
Dbuffer_head.h301 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_bread()
307 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_bread_unmovable()
313 __breadahead(sb->s_bdev, block, sb->s_blocksize); in sb_breadahead()
319 __breadahead_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_breadahead_unmovable()
325 return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_getblk()
332 return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, gfp); in sb_getblk_gfp()
338 return __find_get_block(sb->s_bdev, block, sb->s_blocksize); in sb_find_get_block()
347 bh->b_size = sb->s_blocksize; in map_bh()
/kernel/linux/linux-5.10/fs/affs/
Dbitmap.c184 enddata = (__be32 *)((u8 *)bh->b_data + sb->s_blocksize); in affs_alloc_block()
264 sbi->s_bmap_bits = sb->s_blocksize * 8 - 32; in affs_init_bitmap()
275 blk = sb->s_blocksize / 4 - 49; in affs_init_bitmap()
295 bm->bm_free = memweight(bh->b_data + 4, sb->s_blocksize - 4); in affs_init_bitmap()
312 end = sb->s_blocksize / 4 - 1; in affs_init_bitmap()
337 while (++offset < sb->s_blocksize / 4) in affs_init_bitmap()
345 bm->bm_free = memweight(bh->b_data + 4, sb->s_blocksize - 4); in affs_init_bitmap()
/kernel/linux/linux-5.10/fs/freevxfs/
Dvxfs_olt.c59 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock()
60 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock()
105 eaddr = bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
Dvxfs_lookup.c49 #define VXFS_BLOCK_PER_PAGE(sbp) ((PAGE_SIZE / (sbp)->s_blocksize))
83 u_long bsize = ip->i_sb->s_blocksize; in vxfs_find_entry()
219 u_long bsize = sbp->s_blocksize; in vxfs_readdir()
/kernel/linux/linux-5.10/fs/minix/
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()
272 return count_free(sbi->s_imap, sb->s_blocksize, bits); in minix_count_free_inodes()
/kernel/linux/linux-5.10/fs/ext2/
Dsuper.c678 EXT2FS_VERSION, EXT2FS_DATE, sb->s_blocksize, in ext2_setup_super()
960 if (sb->s_blocksize != blocksize) { in ext2_fill_super()
1010 sbi->s_frags_per_block = sb->s_blocksize / sbi->s_frag_size; in ext2_fill_super()
1016 sbi->s_inodes_per_block = sb->s_blocksize / EXT2_INODE_SIZE(sb); in ext2_fill_super()
1021 sbi->s_desc_per_block = sb->s_blocksize / in ext2_fill_super()
1033 if (sb->s_blocksize != bh->b_size) { in ext2_fill_super()
1039 if (sb->s_blocksize != sbi->s_frag_size) { in ext2_fill_super()
1043 sbi->s_frag_size, sb->s_blocksize); in ext2_fill_super()
1047 if (sbi->s_blocks_per_group > sb->s_blocksize * 8) { in ext2_fill_super()
1053 if (sbi->s_frags_per_group > sb->s_blocksize * 8) { in ext2_fill_super()
[all …]
/kernel/linux/linux-5.10/fs/jfs/
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()
473 current_blocks = (ea_size + sb->s_blocksize - 1) >> in ea_get()
484 ea_buf->max_size = (size + sb->s_blocksize - 1) & in ea_get()
485 ~(sb->s_blocksize - 1); in ea_get()
503 blocks_needed = (min_size + sb->s_blocksize - 1) >> in ea_get()
535 ea_buf->max_size = (min_size + sb->s_blocksize - 1) & in ea_get()
536 ~(sb->s_blocksize - 1); in ea_get()
555 ea_buf->max_size = (ea_size + sb->s_blocksize - 1) & in ea_get()
[all …]
Dsuper.c598 sb->s_maxbytes = min(((loff_t)sb->s_blocksize) << 40, MAX_LFS_FILESIZE); in jfs_fill_super()
741 int offset = off & (sb->s_blocksize - 1); in jfs_quota_read()
754 tocopy = sb->s_blocksize - offset < toread ? in jfs_quota_read()
755 sb->s_blocksize - offset : toread; in jfs_quota_read()
786 int offset = off & (sb->s_blocksize - 1); in jfs_quota_write()
794 tocopy = sb->s_blocksize - offset < towrite ? in jfs_quota_write()
795 sb->s_blocksize - offset : towrite; in jfs_quota_write()
802 if (offset || tocopy != sb->s_blocksize) in jfs_quota_write()
/kernel/linux/linux-5.10/fs/adfs/
Ddir.c24 offset &= sb->s_blocksize - 1; in adfs_dir_copyfrom()
25 remain = sb->s_blocksize - offset; in adfs_dir_copyfrom()
49 offset &= sb->s_blocksize - 1; in adfs_dir_copyto()
50 remain = sb->s_blocksize - offset; in adfs_dir_copyto()
104 num = ALIGN(size, sb->s_blocksize) >> sb->s_blocksize_bits; in adfs_dir_read_buffers()
/kernel/linux/linux-5.10/fs/crypto/
Dinline_crypt.c98 sb->s_blocksize != PAGE_SIZE) in fscrypt_select_encryption_impl()
106 crypto_cfg.data_unit_size = sb->s_blocksize; in fscrypt_select_encryption_impl()
147 fscrypt_get_dun_bytes(ci), sb->s_blocksize); in fscrypt_prepare_inline_crypt_key()
/kernel/linux/linux-5.10/fs/hfs/
Dmdb.c190 off2 = off & (sb->s_blocksize - 1); in hfs_mdb_get()
191 len = min((int)sb->s_blocksize - off2, size); in hfs_mdb_get()
313 off = (block << HFS_SECTOR_SIZE_BITS) & (sb->s_blocksize - 1); in hfs_mdb_commit()
323 len = min((int)sb->s_blocksize - off, size); in hfs_mdb_commit()

12345678910