Home
last modified time | relevance | path

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

123456789

/Linux-v4.19/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()
1617 bh = sb_bread(s, offset / s->s_blocksize); in read_super_block()
1621 s->s_id, offset / s->s_blocksize, in read_super_block()
1622 s->s_blocksize); in read_super_block()
1638 bh = sb_bread(s, offset / s->s_blocksize); in read_super_block()
1642 s->s_id, offset / s->s_blocksize, in read_super_block()
1643 s->s_blocksize); in read_super_block()
1648 if (sb_blocksize(rs) != s->s_blocksize) { in read_super_block()
[all …]
/Linux-v4.19/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()
202 bit = block % (sb->s_blocksize << 3); in udf_bitmap_prealloc_blocks()
204 while (bit < (sb->s_blocksize << 3) && block_count > 0) { in udf_bitmap_prealloc_blocks()
251 sb->s_blocksize - group_start); in udf_bitmap_new_block()
253 if ((ptr - ((char *)bh->b_data)) < sb->s_blocksize) { in udf_bitmap_new_block()
254 bit = block % (sb->s_blocksize << 3); in udf_bitmap_new_block()
264 sb->s_blocksize - ((bit + 7) >> 3)); in udf_bitmap_new_block()
266 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()
Dinode.c360 memset(dbh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_expand_dir_adinicb()
366 f_pos & (inode->i_sb->s_blocksize - 1); in udf_expand_dir_adinicb()
462 memset(bh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_getblk()
494 if (last_ext->extLength & (sb->s_blocksize - 1)) { in udf_do_extend_file()
498 sb->s_blocksize - 1) & ~(sb->s_blocksize - 1)); in udf_do_extend_file()
500 (iinfo->i_lenExtents + sb->s_blocksize - 1) & in udf_do_extend_file()
501 ~(sb->s_blocksize - 1); in udf_do_extend_file()
520 add = ((1 << 30) - sb->s_blocksize - in udf_do_extend_file()
626 if (newsize & (sb->s_blocksize - 1)) in udf_extend_file()
716 ((elen + inode->i_sb->s_blocksize - 1) >> in inode_getblk()
[all …]
Dnamei.c187 fibh->soffset = fibh->eoffset = f_pos & (sb->s_blocksize - 1); in udf_find_entry()
388 fibh->soffset = fibh->eoffset = f_pos & (dir->i_sb->s_blocksize - 1); in udf_add_entry()
395 fibh->soffset = fibh->eoffset = sb->s_blocksize; in udf_add_entry()
447 sb->s_blocksize - fibh->eoffset < nfidlen) { in udf_add_entry()
467 if (sb->s_blocksize - fibh->eoffset >= nfidlen) { in udf_add_entry()
491 elen = (elen + sb->s_blocksize - 1) & ~(sb->s_blocksize - 1); in udf_add_entry()
497 dinfo->i_lenExtents = (dinfo->i_lenExtents + sb->s_blocksize in udf_add_entry()
498 - 1) & ~(sb->s_blocksize - 1); in udf_add_entry()
500 fibh->soffset = fibh->eoffset - sb->s_blocksize; in udf_add_entry()
501 fibh->eoffset += nfidlen - sb->s_blocksize; in udf_add_entry()
[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()
265 (elen + sb->s_blocksize - 1) >> in udf_truncate_extents()
/Linux-v4.19/fs/ocfs2/
Docfs2_fs.h1282 return sb->s_blocksize - in ocfs2_fast_symlink_chars()
1292 return sb->s_blocksize - in ocfs2_max_inline_data_with_xattr()
1296 return sb->s_blocksize - in ocfs2_max_inline_data_with_xattr()
1304 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode()
1318 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode_with_xattr()
1322 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode_with_xattr()
1332 size = sb->s_blocksize - in ocfs2_extent_recs_per_dx_root()
1342 size = sb->s_blocksize - in ocfs2_chain_recs_per_inode()
1352 size = sb->s_blocksize - in ocfs2_extent_recs_per_eb()
1362 size = sb->s_blocksize - in ocfs2_extent_recs_per_gd()
[all …]
Ddir.c117 return sb->s_blocksize - sizeof(struct ocfs2_dir_block_trailer); in ocfs2_dir_trailer_blk_off()
332 ((char *) de - bh->b_data) + rlen > dir->i_sb->s_blocksize)) in ocfs2_check_dir_entry()
747 bh->b_data, sb->s_blocksize, in ocfs2_find_entry_el()
989 dir->i_sb->s_blocksize, &dir_ent); in ocfs2_dx_dir_search()
1612 unsigned int size = sb->s_blocksize; in __ocfs2_add_entry()
1841 offset = ctx->pos & (sb->s_blocksize - 1); in ocfs2_dir_foreach_blk_el()
1847 ctx->pos += sb->s_blocksize - offset; in ocfs2_dir_foreach_blk_el()
1874 for (i = 0; i < sb->s_blocksize && i < offset; ) { in ocfs2_dir_foreach_blk_el()
1888 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ocfs2_dir_foreach_blk_el()
1894 && offset < sb->s_blocksize) { in ocfs2_dir_foreach_blk_el()
[all …]
/Linux-v4.19/fs/omfs/
Dinode.c281 buf->f_bsize = sbi->s_blocksize; in omfs_statfs()
347 array_size = DIV_ROUND_UP(bitmap_size, sb->s_blocksize); in omfs_get_imap()
362 for (count = bitmap_size; count > 0; count -= sb->s_blocksize) { in omfs_get_imap()
366 *ptr = kmalloc(sb->s_blocksize, GFP_KERNEL); in omfs_get_imap()
371 memcpy(*ptr, bh->b_data, sb->s_blocksize); in omfs_get_imap()
372 if (count < sb->s_blocksize) in omfs_get_imap()
374 sb->s_blocksize - count); in omfs_get_imap()
498 sbi->s_blocksize = be32_to_cpu(omfs_sb->s_blocksize); in omfs_fill_super()
516 if (sbi->s_blocksize < sbi->s_sys_blocksize || in omfs_fill_super()
517 sbi->s_blocksize > OMFS_MAX_BLOCK_SIZE) { 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()
/Linux-v4.19/fs/ext4/
Ddir.c70 dir->i_sb->s_blocksize); in __ext4_check_dir_entry()
147 offset = ctx->pos & (sb->s_blocksize - 1); in ext4_readdir()
188 ctx->pos += sb->s_blocksize - offset; in ext4_readdir()
199 ctx->pos += sb->s_blocksize - offset; in ext4_readdir()
211 for (i = 0; i < sb->s_blocksize && i < offset; ) { in ext4_readdir()
221 sb->s_blocksize) < EXT4_DIR_REC_LEN(1)) in ext4_readdir()
224 sb->s_blocksize); in ext4_readdir()
227 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ext4_readdir()
233 && offset < sb->s_blocksize) { in ext4_readdir()
242 (sb->s_blocksize - 1)) + 1; in ext4_readdir()
[all …]
Dmigrate.c117 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_ind_extent_range()
146 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_dind_extent_range()
176 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_tind_extent_range()
225 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in free_dind_blocks()
255 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in free_tind_blocks()
525 max_entries = inode->i_sb->s_blocksize >> 2; in ext4_ext_migrate()
Dnamei.c69 inode->i_size += inode->i_sb->s_blocksize; in ext4_append()
122 inode->i_sb->s_blocksize) == in __ext4_read_dirblock()
123 inode->i_sb->s_blocksize) in __ext4_read_dirblock()
558 unsigned entry_space = dir->i_sb->s_blocksize - EXT4_DIR_REC_LEN(1) - in dx_root_limit()
568 unsigned entry_space = dir->i_sb->s_blocksize - EXT4_DIR_REC_LEN(0); in dx_node_limit()
692 unsigned blocksize = dir->i_sb->s_blocksize; in dx_show_entries()
984 dir->i_sb->s_blocksize - in htree_dirblock_to_tree()
1002 for (; de < top; de = ext4_next_entry(de, dir->i_sb->s_blocksize)) { in htree_dirblock_to_tree()
1121 de = ext4_next_entry(de, dir->i_sb->s_blocksize); in ext4_htree_fill_tree()
1177 return ext4_search_dir(bh, bh->b_data, dir->i_sb->s_blocksize, dir, in search_dirblock()
[all …]
/Linux-v4.19/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()
/Linux-v4.19/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()
/Linux-v4.19/include/linux/
Dbuffer_head.h307 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_bread()
313 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_bread_unmovable()
319 __breadahead(sb->s_bdev, block, sb->s_blocksize); in sb_breadahead()
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()
/Linux-v4.19/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()
/Linux-v4.19/fs/ext2/
Dsuper.c696 EXT2FS_VERSION, EXT2FS_DATE, sb->s_blocksize, in ext2_setup_super()
976 if (sb->s_blocksize != blocksize) { in ext2_fill_super()
1024 sbi->s_frags_per_block = sb->s_blocksize / sbi->s_frag_size; in ext2_fill_super()
1032 sbi->s_inodes_per_block = sb->s_blocksize / EXT2_INODE_SIZE(sb); in ext2_fill_super()
1037 sbi->s_desc_per_block = sb->s_blocksize / in ext2_fill_super()
1049 if (sb->s_blocksize != bh->b_size) { in ext2_fill_super()
1055 if (sb->s_blocksize != sbi->s_frag_size) { in ext2_fill_super()
1059 sbi->s_frag_size, sb->s_blocksize); in ext2_fill_super()
1063 if (sbi->s_blocks_per_group > sb->s_blocksize * 8) { in ext2_fill_super()
1069 if (sbi->s_frags_per_group > sb->s_blocksize * 8) { in ext2_fill_super()
[all …]
Dxattr.c210 if (size > inode->i_sb->s_blocksize || in ext2_xattr_get()
211 le16_to_cpu(entry->e_value_offs) + size > inode->i_sb->s_blocksize) in ext2_xattr_get()
370 size_t name_len, free, min_offs = sb->s_blocksize; in ext2_xattr_set()
394 if (name_len > 255 || value_len > sb->s_blocksize) in ext2_xattr_set()
454 free = sb->s_blocksize - in ext2_xattr_set()
476 sb->s_blocksize || size > sb->s_blocksize) in ext2_xattr_set()
522 header = kzalloc(sb->s_blocksize, GFP_KERNEL); in ext2_xattr_set()
526 end = (char *)header + sb->s_blocksize; in ext2_xattr_set()
/Linux-v4.19/fs/crypto/
Dbio.c104 BUG_ON(inode->i_sb->s_blocksize != PAGE_SIZE); in fscrypt_zeroout_range()
133 inode->i_sb->s_blocksize, 0); in fscrypt_zeroout_range()
134 if (ret != inode->i_sb->s_blocksize) { in fscrypt_zeroout_range()
/Linux-v4.19/fs/jfs/
Dxattr.c238 nblocks = (size + (sb->s_blocksize - 1)) >> sb->s_blocksize_bits; in ea_write()
266 ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits)) in ea_write()
406 ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits)) in ea_read()
486 current_blocks = (ea_size + sb->s_blocksize - 1) >> in ea_get()
497 ea_buf->max_size = (size + sb->s_blocksize - 1) & in ea_get()
498 ~(sb->s_blocksize - 1); in ea_get()
516 blocks_needed = (min_size + sb->s_blocksize - 1) >> in ea_get()
548 ea_buf->max_size = (min_size + sb->s_blocksize - 1) & in ea_get()
549 ~(sb->s_blocksize - 1); in ea_get()
568 ea_buf->max_size = (ea_size + sb->s_blocksize - 1) & in ea_get()
[all …]
/Linux-v4.19/fs/adfs/
Ddir_f.c267 offset = pos & (sb->s_blocksize - 1); in __adfs_dir_get()
268 thissize = sb->s_blocksize - offset; in __adfs_dir_get()
297 offset = pos & (sb->s_blocksize - 1); in __adfs_dir_put()
298 thissize = sb->s_blocksize - offset; in __adfs_dir_put()
409 dir->bh[dir->nr_buffers - 1]->b_data[sb->s_blocksize - 6] += 1; in adfs_f_update()
415 dir->bh[dir->nr_buffers - 1]->b_data[sb->s_blocksize - 1] = ret; in adfs_f_update()

123456789