/openbmc/linux/fs/udf/ |
H A D | balloc.c | 49 max_bits = sb->s_blocksize * 8; in read_block_bitmap() 158 bit = block % (sb->s_blocksize << 3); in udf_bitmap_free_blocks() 163 if (bit + count > (sb->s_blocksize << 3)) { in udf_bitmap_free_blocks() 164 overflow = bit + count - (sb->s_blocksize << 3); in udf_bitmap_free_blocks() 220 bit = block % (sb->s_blocksize << 3); in udf_bitmap_prealloc_blocks() 222 while (bit < (sb->s_blocksize << 3) && block_count > 0) { in udf_bitmap_prealloc_blocks() 269 sb->s_blocksize - group_start); in udf_bitmap_new_block() 271 if ((ptr - ((char *)bh->b_data)) < sb->s_blocksize) { in udf_bitmap_new_block() 272 bit = block % (sb->s_blocksize << 3); in udf_bitmap_new_block() 282 sb->s_blocksize - ((bit + 7) >> 3)); in udf_bitmap_new_block() [all …]
|
H A D | inode.c | 525 if (last_ext->extLength & (sb->s_blocksize - 1)) { in udf_do_extend_file() 529 sb->s_blocksize - 1) & ~(sb->s_blocksize - 1)); in udf_do_extend_file() 531 (iinfo->i_lenExtents + sb->s_blocksize - 1) & in udf_do_extend_file() 532 ~(sb->s_blocksize - 1); in udf_do_extend_file() 539 add = (1 << 30) - sb->s_blocksize - in udf_do_extend_file() 582 add = (1 << 30) - sb->s_blocksize; in udf_do_extend_file() 700 (newsize & (sb->s_blocksize - 1)); in udf_extend_file() 783 ((elen + inode->i_sb->s_blocksize - 1) >> in inode_getblk() 806 if (elen & (inode->i_sb->s_blocksize - 1)) { in inode_getblk() 808 ((elen + inode->i_sb->s_blocksize - 1) & in inode_getblk() [all …]
|
H A D | truncate.c | 30 int last_block = (elen + inode->i_sb->s_blocksize - 1) >> in extent_trunc() 32 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() 221 (inode->i_size & (sb->s_blocksize - 1)); in udf_truncate_extents() 266 (elen + sb->s_blocksize - 1) >> in udf_truncate_extents()
|
H A D | ialloc.c | 51 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()
|
/openbmc/linux/fs/reiserfs/ |
H A D | resize.c | 69 (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()
|
H A D | tail_conversion.c | 52 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()
|
H A D | super.c | 456 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() 1604 bh = sb_bread(s, offset / s->s_blocksize); in read_super_block() 1608 s->s_id, offset / s->s_blocksize, in read_super_block() 1609 s->s_blocksize); in read_super_block() 1625 bh = sb_bread(s, offset / s->s_blocksize); in read_super_block() 1629 s->s_id, offset / s->s_blocksize, in read_super_block() 1630 s->s_blocksize); in read_super_block() 1635 if (sb_blocksize(rs) != s->s_blocksize) { in read_super_block() [all …]
|
/openbmc/linux/fs/ocfs2/ |
H A D | ocfs2_fs.h | 1241 return sb->s_blocksize - in ocfs2_fast_symlink_chars() 1251 return sb->s_blocksize - in ocfs2_max_inline_data_with_xattr() 1255 return sb->s_blocksize - in ocfs2_max_inline_data_with_xattr() 1263 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode() 1277 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode_with_xattr() 1281 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode_with_xattr() 1291 size = sb->s_blocksize - in ocfs2_extent_recs_per_dx_root() 1301 size = sb->s_blocksize - in ocfs2_chain_recs_per_inode() 1311 size = sb->s_blocksize - in ocfs2_extent_recs_per_eb() 1321 size = sb->s_blocksize - in ocfs2_extent_recs_per_gd() [all …]
|
H A D | dir.c | 97 return sb->s_blocksize - sizeof(struct ocfs2_dir_block_trailer); in ocfs2_dir_trailer_blk_off() 733 bh->b_data, sb->s_blocksize, in ocfs2_find_entry_el() 975 dir->i_sb->s_blocksize, &dir_ent); in ocfs2_dx_dir_search() 1084 if (unlikely(i_size_read(dir) > dir->i_sb->s_blocksize)) { in ocfs2_find_entry() 1611 unsigned int size = sb->s_blocksize; in __ocfs2_add_entry() 1839 offset = ctx->pos & (sb->s_blocksize - 1); in ocfs2_dir_foreach_blk_el() 1845 ctx->pos += sb->s_blocksize - offset; in ocfs2_dir_foreach_blk_el() 1872 for (i = 0; i < sb->s_blocksize && i < offset; ) { in ocfs2_dir_foreach_blk_el() 1886 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ocfs2_dir_foreach_blk_el() 1892 && offset < sb->s_blocksize) { in ocfs2_dir_foreach_blk_el() [all …]
|
/openbmc/linux/fs/ext4/ |
H A D | dir.c | 86 dir->i_sb->s_blocksize); in __ext4_check_dir_entry() 178 offset = ctx->pos & (sb->s_blocksize - 1); in ext4_readdir() 187 ctx->pos += map.m_len * sb->s_blocksize; in ext4_readdir() 211 ctx->pos += sb->s_blocksize - offset; in ext4_readdir() 221 ctx->pos += sb->s_blocksize - offset; in ext4_readdir() 233 for (i = 0; i < sb->s_blocksize && i < offset; ) { in ext4_readdir() 243 sb->s_blocksize) < ext4_dir_rec_len(1, in ext4_readdir() 247 sb->s_blocksize); in ext4_readdir() 250 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ext4_readdir() 256 && offset < sb->s_blocksize) { in ext4_readdir() [all …]
|
H A D | symlink.c | 50 max_size = inode->i_sb->s_blocksize; in ext4_encrypted_get_link() 111 inode->i_sb->s_blocksize - 1); in ext4_get_link()
|
H A D | migrate.c | 96 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_ind_extent_range() 125 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_dind_extent_range() 155 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_tind_extent_range() 185 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in free_dind_blocks() 225 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in free_tind_blocks() 510 max_entries = inode->i_sb->s_blocksize >> 2; in ext4_ext_migrate()
|
H A D | namei.c | 86 inode->i_size += inode->i_sb->s_blocksize; in ext4_append() 169 inode->i_sb->s_blocksize) == in __ext4_read_dirblock() 170 inode->i_sb->s_blocksize) in __ext4_read_dirblock() 611 unsigned int entry_space = dir->i_sb->s_blocksize - in dx_root_limit() 622 unsigned int entry_space = dir->i_sb->s_blocksize - in dx_node_limit() 745 unsigned blocksize = dir->i_sb->s_blocksize; in dx_show_entries() 1090 dir->i_sb->s_blocksize - in htree_dirblock_to_tree() 1108 for (; de < top; de = ext4_next_entry(de, dir->i_sb->s_blocksize)) { in htree_dirblock_to_tree() 1244 de = ext4_next_entry(de, dir->i_sb->s_blocksize); in ext4_htree_fill_tree() 1300 return ext4_search_dir(bh, bh->b_data, dir->i_sb->s_blocksize, dir, in search_dirblock() [all …]
|
/openbmc/linux/fs/omfs/ |
H A D | inode.c | 280 buf->f_bsize = sbi->s_blocksize; in omfs_statfs() 345 array_size = DIV_ROUND_UP(bitmap_size, sb->s_blocksize); in omfs_get_imap() 360 for (count = bitmap_size; count > 0; count -= sb->s_blocksize) { in omfs_get_imap() 364 *ptr = kmemdup(bh->b_data, sb->s_blocksize, GFP_KERNEL); in omfs_get_imap() 369 if (count < sb->s_blocksize) in omfs_get_imap() 371 sb->s_blocksize - count); in omfs_get_imap() 499 sbi->s_blocksize = be32_to_cpu(omfs_sb->s_blocksize); in omfs_fill_super() 517 if (sbi->s_blocksize < sbi->s_sys_blocksize || in omfs_fill_super() 518 sbi->s_blocksize > OMFS_MAX_BLOCK_SIZE) { in omfs_fill_super() 520 sbi->s_blocksize); in omfs_fill_super() [all …]
|
H A D | bitmap.c | 13 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()
|
/openbmc/linux/fs/affs/ |
H A D | bitmap.c | 184 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()
|
/openbmc/linux/fs/freevxfs/ |
H A D | vxfs_olt.c | 35 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 D | vxfs_lookup.c | 25 #define VXFS_BLOCK_PER_PAGE(sbp) ((PAGE_SIZE / (sbp)->s_blocksize)) 59 u_long bsize = ip->i_sb->s_blocksize; in vxfs_find_entry() 195 u_long bsize = sbp->s_blocksize; in vxfs_readdir()
|
/openbmc/linux/fs/minix/ |
H A D | bitmap.c | 74 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 D | itree_common.c | 312 iblock = (inode->i_size + sb->s_blocksize -1) >> sb->s_blocksize_bits; in truncate() 361 blocks = (size + sb->s_blocksize - 1) >> (BLOCK_SIZE_BITS + k); in nblocks() 365 blocks += sb->s_blocksize/sizeof(block_t) - 1; in nblocks() 366 blocks /= sb->s_blocksize/sizeof(block_t); in nblocks()
|
/openbmc/linux/include/linux/ |
H A D | buffer_head.h | 326 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_bread() 332 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_bread_unmovable() 338 __breadahead(sb->s_bdev, block, sb->s_blocksize); in sb_breadahead() 344 return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_getblk() 351 return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, gfp); in sb_getblk_gfp() 357 return __find_get_block(sb->s_bdev, block, sb->s_blocksize); in sb_find_get_block() 366 bh->b_size = sb->s_blocksize; in map_bh()
|
/openbmc/linux/fs/jfs/ |
H A D | xattr.c | 225 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 …]
|
/openbmc/linux/fs/adfs/ |
H A D | dir.c | 24 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()
|
/openbmc/linux/fs/ext2/ |
H A D | super.c | 673 EXT2FS_VERSION, EXT2FS_DATE, sb->s_blocksize, in ext2_setup_super() 968 if (sb->s_blocksize != blocksize) { in ext2_fill_super() 1017 sbi->s_inodes_per_block = sb->s_blocksize / EXT2_INODE_SIZE(sb); in ext2_fill_super() 1022 sbi->s_desc_per_block = sb->s_blocksize / in ext2_fill_super() 1034 if (sb->s_blocksize != bh->b_size) { in ext2_fill_super() 1047 if (sbi->s_blocks_per_group > sb->s_blocksize * 8) { in ext2_fill_super() 1061 sbi->s_inodes_per_group > sb->s_blocksize * 8) { in ext2_fill_super() 1457 buf->f_bsize = sb->s_blocksize; in ext2_statfs() 1491 int offset = off & (sb->s_blocksize - 1); in ext2_quota_read() 1504 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); in ext2_quota_read() [all …]
|
/openbmc/linux/fs/hfs/ |
H A D | mdb.c | 190 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()
|