/fs/udf/ |
D | balloc.c | 52 max_bits = sb->s_blocksize * 8; in read_block_bitmap() 161 bit = block % (sb->s_blocksize << 3); in udf_bitmap_free_blocks() 166 if (bit + count > (sb->s_blocksize << 3)) { in udf_bitmap_free_blocks() 167 overflow = bit + count - (sb->s_blocksize << 3); in udf_bitmap_free_blocks() 223 bit = block % (sb->s_blocksize << 3); in udf_bitmap_prealloc_blocks() 225 while (bit < (sb->s_blocksize << 3) && block_count > 0) { in udf_bitmap_prealloc_blocks() 272 sb->s_blocksize - group_start); in udf_bitmap_new_block() 274 if ((ptr - ((char *)bh->b_data)) < sb->s_blocksize) { in udf_bitmap_new_block() 275 bit = block % (sb->s_blocksize << 3); in udf_bitmap_new_block() 285 sb->s_blocksize - ((bit + 7) >> 3)); in udf_bitmap_new_block() [all …]
|
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()
|
D | namei.c | 190 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() 479 elen = (elen + sb->s_blocksize - 1) & ~(sb->s_blocksize - 1); in udf_add_entry() 485 dinfo->i_lenExtents = (dinfo->i_lenExtents + sb->s_blocksize in udf_add_entry() 486 - 1) & ~(sb->s_blocksize - 1); in udf_add_entry() 488 fibh->soffset = fibh->eoffset - sb->s_blocksize; in udf_add_entry() 489 fibh->eoffset += nfidlen - sb->s_blocksize; in udf_add_entry() [all …]
|
D | inode.c | 369 memset(dbh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_expand_dir_adinicb() 375 f_pos & (inode->i_sb->s_blocksize - 1); in udf_expand_dir_adinicb() 477 memset(bh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_getblk() 509 if (last_ext->extLength & (sb->s_blocksize - 1)) { in udf_do_extend_file() 513 sb->s_blocksize - 1) & ~(sb->s_blocksize - 1)); in udf_do_extend_file() 515 (iinfo->i_lenExtents + sb->s_blocksize - 1) & in udf_do_extend_file() 516 ~(sb->s_blocksize - 1); in udf_do_extend_file() 522 add = (1 << 30) - sb->s_blocksize - in udf_do_extend_file() 559 add = (1 << 30) - sb->s_blocksize; in udf_do_extend_file() 670 (newsize & (sb->s_blocksize - 1)); in udf_extend_file() [all …]
|
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() 205 (inode->i_size & (sb->s_blocksize - 1)); in udf_truncate_extents() 250 (elen + sb->s_blocksize - 1) >> in udf_truncate_extents()
|
/fs/reiserfs/ |
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()
|
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()
|
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() 1606 bh = sb_bread(s, offset / s->s_blocksize); in read_super_block() 1610 s->s_id, offset / s->s_blocksize, in read_super_block() 1611 s->s_blocksize); in read_super_block() 1627 bh = sb_bread(s, offset / s->s_blocksize); in read_super_block() 1631 s->s_id, offset / s->s_blocksize, in read_super_block() 1632 s->s_blocksize); in read_super_block() 1637 if (sb_blocksize(rs) != s->s_blocksize) { in read_super_block() [all …]
|
/fs/ocfs2/ |
D | ocfs2_fs.h | 1243 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 …]
|
D | dir.c | 99 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 …]
|
/fs/ext4/ |
D | dir.c | 86 dir->i_sb->s_blocksize); in __ext4_check_dir_entry() 180 offset = ctx->pos & (sb->s_blocksize - 1); in ext4_readdir() 189 ctx->pos += map.m_len * sb->s_blocksize; in ext4_readdir() 213 ctx->pos += sb->s_blocksize - offset; in ext4_readdir() 223 ctx->pos += sb->s_blocksize - offset; in ext4_readdir() 235 for (i = 0; i < sb->s_blocksize && i < offset; ) { in ext4_readdir() 245 sb->s_blocksize) < ext4_dir_rec_len(1, in ext4_readdir() 249 sb->s_blocksize); in ext4_readdir() 252 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ext4_readdir() 258 && offset < sb->s_blocksize) { in ext4_readdir() [all …]
|
D | migrate.c | 117 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() 529 max_entries = inode->i_sb->s_blocksize >> 2; in ext4_ext_migrate()
|
D | namei.c | 86 inode->i_size += inode->i_sb->s_blocksize; in ext4_append() 152 inode->i_sb->s_blocksize) == in __ext4_read_dirblock() 153 inode->i_sb->s_blocksize) in __ext4_read_dirblock() 594 unsigned int entry_space = dir->i_sb->s_blocksize - in dx_root_limit() 605 unsigned int entry_space = dir->i_sb->s_blocksize - in dx_node_limit() 733 unsigned blocksize = dir->i_sb->s_blocksize; in dx_show_entries() 1062 dir->i_sb->s_blocksize - in htree_dirblock_to_tree() 1081 for (; de < top; de = ext4_next_entry(de, dir->i_sb->s_blocksize)) { in htree_dirblock_to_tree() 1214 de = ext4_next_entry(de, dir->i_sb->s_blocksize); in ext4_htree_fill_tree() 1270 return ext4_search_dir(bh, bh->b_data, dir->i_sb->s_blocksize, dir, in search_dirblock() [all …]
|
/fs/omfs/ |
D | inode.c | 281 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() 502 sbi->s_blocksize = be32_to_cpu(omfs_sb->s_blocksize); in omfs_fill_super() 520 if (sbi->s_blocksize < sbi->s_sys_blocksize || in omfs_fill_super() 521 sbi->s_blocksize > OMFS_MAX_BLOCK_SIZE) { in omfs_fill_super() [all …]
|
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()
|
/fs/affs/ |
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()
|
/fs/freevxfs/ |
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()
|
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()
|
/fs/jfs/ |
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 …]
|
D | super.c | 598 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()
|
/fs/minix/ |
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()
|
/fs/adfs/ |
D | dir_f.c | 244 offset = pos & (sb->s_blocksize - 1); in __adfs_dir_get() 245 thissize = sb->s_blocksize - offset; in __adfs_dir_get() 274 offset = pos & (sb->s_blocksize - 1); in __adfs_dir_put() 275 thissize = sb->s_blocksize - offset; in __adfs_dir_put() 385 dir->bh[dir->nr_buffers - 1]->b_data[sb->s_blocksize - 6] += 1; in adfs_f_update() 391 dir->bh[dir->nr_buffers - 1]->b_data[sb->s_blocksize - 1] = ret; in adfs_f_update()
|
/fs/ext2/ |
D | super.c | 686 EXT2FS_VERSION, EXT2FS_DATE, sb->s_blocksize, in ext2_setup_super() 987 if (sb->s_blocksize != blocksize) { in ext2_fill_super() 1036 sbi->s_inodes_per_block = sb->s_blocksize / EXT2_INODE_SIZE(sb); in ext2_fill_super() 1041 sbi->s_desc_per_block = sb->s_blocksize / in ext2_fill_super() 1053 if (sb->s_blocksize != bh->b_size) { in ext2_fill_super() 1066 if (sbi->s_blocks_per_group > sb->s_blocksize * 8) { in ext2_fill_super() 1073 sbi->s_inodes_per_group > sb->s_blocksize * 8) { in ext2_fill_super() 1465 buf->f_bsize = sb->s_blocksize; in ext2_statfs() 1502 int offset = off & (sb->s_blocksize - 1); in ext2_quota_read() 1515 tocopy = sb->s_blocksize - offset < toread ? in ext2_quota_read() [all …]
|
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() 467 if (!ext2_xattr_entry_valid(last, end, sb->s_blocksize)) in ext2_xattr_set() 490 free = sb->s_blocksize - in ext2_xattr_set() 549 header = kzalloc(sb->s_blocksize, GFP_KERNEL); in ext2_xattr_set() 553 end = (char *)header + sb->s_blocksize; in ext2_xattr_set()
|
/fs/crypto/ |
D | inline_crypt.c | 101 sb->s_blocksize != PAGE_SIZE) in fscrypt_select_encryption_impl() 128 sb->s_blocksize, in fscrypt_select_encryption_impl() 173 sb->s_blocksize); in fscrypt_prepare_inline_crypt_key() 195 sb->s_blocksize, in fscrypt_prepare_inline_crypt_key()
|