/linux/fs/udf/ |
A D | balloc.c | 138 bit = block % (sb->s_blocksize << 3); in udf_bitmap_free_blocks() 264 if (newbit < sb->s_blocksize << 3) { in udf_bitmap_new_block() 271 if (newbit < sb->s_blocksize << 3) { in udf_bitmap_new_block() 296 sb->s_blocksize << 3, in udf_bitmap_new_block() 298 if (bit < sb->s_blocksize << 3) in udf_bitmap_new_block() 306 if (bit < sb->s_blocksize << 3) in udf_bitmap_new_block() 311 if (bit >= sb->s_blocksize << 3) { in udf_bitmap_new_block() 405 (0x40000000 - sb->s_blocksize); in udf_table_free_blocks() 423 (0x40000000 - sb->s_blocksize); in udf_table_free_blocks() 482 elen -= sb->s_blocksize; in udf_table_free_blocks() [all …]
|
A D | directory.c | 41 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()
|
A D | inode.c | 507 sb->s_blocksize - 1) & ~(sb->s_blocksize - 1)); in udf_do_extend_file() 510 ~(sb->s_blocksize - 1); in udf_do_extend_file() 529 add = (1 << 30) - sb->s_blocksize - in udf_do_extend_file() 564 add = (1 << 30) - sb->s_blocksize; in udf_do_extend_file() 773 ~(inode->i_sb->s_blocksize - 1)); in inode_getblk() 817 inode->i_sb->s_blocksize; in inode_getblk() 1000 inode->i_sb->s_blocksize - 1) >> in udf_prealloc_extents() 1014 inode->i_sb->s_blocksize - 1) >> in udf_prealloc_extents() 1023 inode->i_sb->s_blocksize - 1) >> in udf_prealloc_extents() 1314 int bs = inode->i_sb->s_blocksize; in udf_read_inode() [all …]
|
A D | namei.c | 382 fibh->soffset = fibh->eoffset = sb->s_blocksize; in udf_add_entry() 434 sb->s_blocksize - fibh->eoffset < nfidlen) { in udf_add_entry() 454 if (sb->s_blocksize - fibh->eoffset >= nfidlen) { in udf_add_entry() 477 elen = (elen + sb->s_blocksize - 1) & ~(sb->s_blocksize - 1); in udf_add_entry() 484 - 1) & ~(sb->s_blocksize - 1); in udf_add_entry() 486 fibh->soffset = fibh->eoffset - sb->s_blocksize; in udf_add_entry() 487 fibh->eoffset += nfidlen - sb->s_blocksize; in udf_add_entry() 517 (fibh->sbh->b_data + sb->s_blocksize + in udf_add_entry() 930 bsize = sb->s_blocksize; in udf_symlink() 1134 old_inode->i_sb->s_blocksize, &offset); in udf_rename() [all …]
|
A D | truncate.c | 34 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()
|
/linux/fs/reiserfs/ |
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()
|
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()
|
A D | super.c | 527 1 + inode->i_sb->s_blocksize); in remove_save_link() 1608 s->s_id, offset / s->s_blocksize, in read_super_block() 1609 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() 1640 s->s_blocksize); in read_super_block() 2257 buf->f_bsize = dentry->d_sb->s_blocksize; in reiserfs_statfs() 2506 sb->s_blocksize - offset < in reiserfs_quota_read() 2556 sb->s_blocksize - offset : towrite; in reiserfs_quota_write() [all …]
|
/linux/fs/ocfs2/ |
A D | ocfs2_fs.h | 1263 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode() 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() 1331 size = sb->s_blocksize - in ocfs2_dx_entries_per_leaf() 1341 size = sb->s_blocksize - in ocfs2_dx_entries_per_root() 1351 size = sb->s_blocksize - in ocfs2_local_alloc_size() 1381 size = sb->s_blocksize - in ocfs2_truncate_recs_per_inode() 1405 size = sb->s_blocksize - in ocfs2_xattr_recs_per_xb() [all …]
|
A D | dir.c | 727 bh->b_data, sb->s_blocksize, in ocfs2_find_entry_el() 1592 unsigned int size = sb->s_blocksize; in __ocfs2_add_entry() 1823 ctx->pos += sb->s_blocksize - offset; in ocfs2_dir_foreach_blk_el() 1870 && offset < sb->s_blocksize) { in ocfs2_dir_foreach_blk_el() 2221 unsigned int size = osb->sb->s_blocksize; in ocfs2_fill_new_dir_el() 2599 limit = de_buf + dir->i_sb->s_blocksize; in ocfs2_dx_dir_index_block() 2646 limit = de_buf + dir->i_sb->s_blocksize; in ocfs2_dx_dir_index_root_block() 2721 unsigned int new_size = sb->s_blocksize; in ocfs2_expand_last_dirent() 2964 i_size_write(dir, sb->s_blocksize); in ocfs2_expand_inline_dir() 3307 dir_i_size += dir->i_sb->s_blocksize; in ocfs2_extend_dir() [all …]
|
/linux/fs/ext4/ |
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() 243 sb->s_blocksize) < ext4_dir_rec_len(1, in ext4_readdir() 247 sb->s_blocksize); in ext4_readdir() 256 && offset < sb->s_blocksize) { in ext4_readdir() 265 (sb->s_blocksize - 1)) + 1; in ext4_readdir() 269 sb->s_blocksize); in ext4_readdir() [all …]
|
A D | migrate.c | 97 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() 510 max_entries = inode->i_sb->s_blocksize >> 2; in ext4_ext_migrate()
|
A D | namei.c | 70 inode->i_size += inode->i_sb->s_blocksize; in ext4_append() 140 inode->i_sb->s_blocksize) == in __ext4_read_dirblock() 141 inode->i_sb->s_blocksize) in __ext4_read_dirblock() 1035 dir->i_sb->s_blocksize - in htree_dirblock_to_tree() 1484 dir->i_sb->s_blocksize); in ext4_search_dir() 1504 sb->s_blocksize) in is_dx_internal_node() 2171 blocksize = dir->i_sb->s_blocksize; in make_indexed_dir() 2304 blocksize = sb->s_blocksize; in ext4_add_entry() 2482 sb->s_blocksize); in ext4_dx_add_entry() 3034 offset += sb->s_blocksize; in ext4_empty_dir() [all …]
|
/linux/fs/omfs/ |
A D | inode.c | 281 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 …]
|
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()
|
/linux/include/linux/ |
A D | buffer_head.h | 303 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_bread() 309 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_bread_unmovable() 315 __breadahead(sb->s_bdev, block, sb->s_blocksize); in sb_breadahead() 321 __breadahead_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_breadahead_unmovable() 327 return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_getblk() 334 return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, gfp); in sb_getblk_gfp() 340 return __find_get_block(sb->s_bdev, block, sb->s_blocksize); in sb_find_get_block() 349 bh->b_size = sb->s_blocksize; in map_bh()
|
/linux/fs/affs/ |
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()
|
/linux/fs/freevxfs/ |
A D | vxfs_olt.c | 59 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()
|
A D | vxfs_lookup.c | 49 #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/fs/ext2/ |
A D | super.c | 958 if (sb->s_blocksize != blocksize) { in ext2_fill_super() 1019 sbi->s_desc_per_block = sb->s_blocksize / in ext2_fill_super() 1031 if (sb->s_blocksize != bh->b_size) { in ext2_fill_super() 1041 sbi->s_frag_size, sb->s_blocksize); in ext2_fill_super() 1442 buf->f_bsize = sb->s_blocksize; in ext2_statfs() 1476 int offset = off & (sb->s_blocksize - 1); in ext2_quota_read() 1490 sb->s_blocksize - offset : toread; in ext2_quota_read() 1493 tmp_bh.b_size = sb->s_blocksize; in ext2_quota_read() 1521 int offset = off & (sb->s_blocksize - 1); in ext2_quota_write() 1529 sb->s_blocksize - offset : towrite; in ext2_quota_write() [all …]
|
A D | xattr.c | 240 inode->i_sb->s_blocksize)) in ext2_xattr_get() 326 inode->i_sb->s_blocksize)) in ext2_xattr_list() 414 size_t name_len, free, min_offs = sb->s_blocksize; in ext2_xattr_set() 438 if (name_len > 255 || value_len > sb->s_blocksize) in ext2_xattr_set() 470 if (!ext2_xattr_entry_valid(last, end, sb->s_blocksize)) in ext2_xattr_set() 493 free = sb->s_blocksize - in ext2_xattr_set() 552 header = kzalloc(sb->s_blocksize, GFP_KERNEL); in ext2_xattr_set() 556 end = (char *)header + sb->s_blocksize; in ext2_xattr_set()
|
/linux/fs/minix/ |
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() 272 return count_free(sbi->s_imap, sb->s_blocksize, bits); in minix_count_free_inodes()
|
/linux/fs/jfs/ |
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() 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 …]
|
A D | super.c | 596 sb->s_maxbytes = min(((loff_t)sb->s_blocksize) << 40, MAX_LFS_FILESIZE); in jfs_fill_super() 739 int offset = off & (sb->s_blocksize - 1); in jfs_quota_read() 752 tocopy = sb->s_blocksize - offset < toread ? in jfs_quota_read() 753 sb->s_blocksize - offset : toread; in jfs_quota_read() 784 int offset = off & (sb->s_blocksize - 1); in jfs_quota_write() 792 tocopy = sb->s_blocksize - offset < towrite ? in jfs_quota_write() 793 sb->s_blocksize - offset : towrite; in jfs_quota_write() 800 if (offset || tocopy != sb->s_blocksize) in jfs_quota_write()
|
/linux/fs/adfs/ |
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()
|