/fs/jfs/ |
D | jfs_mount.c | 293 s32 bsize; in chkSuper() local 309 bsize = le32_to_cpu(j_sb->s_bsize); in chkSuper() 311 if (bsize != PSIZE) { in chkSuper() 326 AIM_bytesize = lengthPXD(&(j_sb->s_aim2)) * bsize; in chkSuper() 328 AIT_bytesize = lengthPXD(&(j_sb->s_ait2)) * bsize; in chkSuper() 329 AIM_byte_addr = addressPXD(&(j_sb->s_aim2)) * bsize; in chkSuper() 330 AIT_byte_addr = addressPXD(&(j_sb->s_ait2)) * bsize; in chkSuper() 332 fsckwsp_addr = addressPXD(&(j_sb->s_fsckpxd)) * bsize; in chkSuper() 360 sbi->bsize = bsize; in chkSuper() 364 if (sbi->l2bsize != ilog2((u32)bsize) || in chkSuper()
|
/fs/affs/ |
D | file.c | 529 u32 bidx, boff, bsize; in affs_do_readpage_ofs() local 535 bsize = AFFS_SB(sb)->s_data_blksize; in affs_do_readpage_ofs() 537 bidx = tmp / bsize; in affs_do_readpage_ofs() 538 boff = tmp % bsize; in affs_do_readpage_ofs() 544 tmp = min(bsize - boff, to - pos); in affs_do_readpage_ofs() 545 BUG_ON(pos + tmp > to || tmp > bsize); in affs_do_readpage_ofs() 564 u32 size, bsize; in affs_extent_file_ofs() local 568 bsize = AFFS_SB(sb)->s_data_blksize; in affs_extent_file_ofs() 571 bidx = size / bsize; in affs_extent_file_ofs() 572 boff = size % bsize; in affs_extent_file_ofs() [all …]
|
D | amigaffs.c | 343 int bsize; in affs_checksum_block() local 346 for (bsize = sb->s_blocksize / sizeof(__be32); bsize > 0; bsize--) in affs_checksum_block()
|
/fs/freevxfs/ |
D | vxfs_lookup.c | 83 u_long bsize = ip->i_sb->s_blocksize; in vxfs_find_entry() local 104 if ((pos & (bsize - 1)) < 4) { in vxfs_find_entry() 116 pos += bsize - 1; in vxfs_find_entry() 117 pos &= ~(bsize - 1); in vxfs_find_entry() 219 u_long bsize = sbp->s_blocksize; in vxfs_readdir() local 255 if ((pos & (bsize - 1)) < 4) { in vxfs_readdir() 267 pos += bsize - 1; in vxfs_readdir() 268 pos &= ~(bsize - 1); in vxfs_readdir()
|
D | vxfs_olt.c | 57 vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) in vxfs_oblock() argument 59 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock() 60 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock() 77 vxfs_read_olt(struct super_block *sbp, u_long bsize) in vxfs_read_olt() argument 84 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
|
D | vxfs_super.c | 212 u_long bsize; in vxfs_fill_super() local 225 bsize = sb_min_blocksize(sbp, BLOCK_SIZE); in vxfs_fill_super() 226 if (!bsize) { in vxfs_fill_super() 274 if (vxfs_read_olt(sbp, bsize)) { in vxfs_fill_super()
|
D | vxfs_bmap.c | 72 unsigned long bsize = sb->s_blocksize; in vxfs_bmap_ext4() local 86 if ((bn / (indsize * indsize * bsize / 4)) == 0) { in vxfs_bmap_ext4()
|
/fs/squashfs/ |
D | file_direct.c | 21 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize, 25 int squashfs_readpage_block(struct page *target_page, u64 block, int bsize, in squashfs_readpage_block() argument 84 res = squashfs_read_cache(target_page, block, bsize, pages, in squashfs_readpage_block() 93 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); in squashfs_readpage_block() 144 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize, in squashfs_read_cache() argument 149 block, bsize); in squashfs_read_cache() 154 bsize); in squashfs_read_cache()
|
D | file_cache.c | 21 int squashfs_readpage_block(struct page *page, u64 block, int bsize, int expected) in squashfs_readpage_block() argument 25 block, bsize); in squashfs_readpage_block() 30 bsize); in squashfs_readpage_block()
|
D | file.c | 469 int bsize = read_blocklist(inode, index, &block); in squashfs_readpage() local 470 if (bsize < 0) in squashfs_readpage() 473 if (bsize == 0) in squashfs_readpage() 476 res = squashfs_readpage_block(page, block, bsize, expected); in squashfs_readpage()
|
/fs/iomap/ |
D | seek.c | 22 unsigned int bsize = i_blocksize(inode), off; in page_seek_hole_data() local 42 if (bsize == PAGE_SIZE || !ops->is_partially_uptodate) in page_seek_hole_data() 49 for (off = 0; off < PAGE_SIZE; off += bsize) { in page_seek_hole_data() 50 if (offset_in_page(*lastoff) >= off + bsize) in page_seek_hole_data() 52 if (ops->is_partially_uptodate(page, off, bsize) == seek_data) { in page_seek_hole_data() 56 *lastoff = poff + off + bsize; in page_seek_hole_data()
|
/fs/nfs/ |
D | internal.h | 106 unsigned int bsize; member 659 unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_bits() argument 662 if ((bsize & (bsize - 1)) || nrbitsp) { in nfs_block_bits() 665 for (nrbits = 31; nrbits && !(bsize & (1 << nrbits)); nrbits--) in nfs_block_bits() 667 bsize = 1 << nrbits; in nfs_block_bits() 672 return bsize; in nfs_block_bits() 688 unsigned long nfs_block_size(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_size() argument 690 if (bsize < NFS_MIN_FILE_IO_SIZE) in nfs_block_size() 691 bsize = NFS_DEF_FILE_IO_SIZE; in nfs_block_size() 692 else if (bsize >= NFS_MAX_FILE_IO_SIZE) in nfs_block_size() [all …]
|
D | proc.c | 87 info->rtmult = fsinfo.bsize; in nfs_proc_get_root() 90 info->wtmult = fsinfo.bsize; in nfs_proc_get_root() 547 stat->tbytes = (u64)fsinfo.blocks * fsinfo.bsize; in nfs_proc_statfs() 548 stat->fbytes = (u64)fsinfo.bfree * fsinfo.bsize; in nfs_proc_statfs() 549 stat->abytes = (u64)fsinfo.bavail * fsinfo.bsize; in nfs_proc_statfs() 577 info->rtmult = fsinfo.bsize; in nfs_proc_fsinfo() 580 info->wtmult = fsinfo.bsize; in nfs_proc_fsinfo()
|
D | super.c | 449 if (nfss->bsize != 0) in nfs_show_mount_options() 450 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_mount_options() 642 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_stats() 1029 if (ctx && ctx->bsize) in nfs_fill_super() 1030 sb->s_blocksize = nfs_block_size(ctx->bsize, &sb->s_blocksize_bits); in nfs_fill_super() 1278 unsigned bsize = ctx->clone_data.inherited_bsize; in nfs_get_tree_common() local 1281 if (bsize) { in nfs_get_tree_common() 1282 s->s_blocksize_bits = bsize; in nfs_get_tree_common() 1283 s->s_blocksize = 1U << bsize; in nfs_get_tree_common()
|
/fs/reiserfs/ |
D | item_ops.c | 31 static int sd_is_left_mergeable(struct reiserfs_key *key, unsigned long bsize) in sd_is_left_mergeable() argument 128 unsigned long bsize) in direct_is_left_mergeable() argument 131 return ((le_key_k_offset(version, key) & (bsize - 1)) != 1); in direct_is_left_mergeable() 220 unsigned long bsize) in indirect_is_left_mergeable() argument 364 unsigned long bsize) in direntry_is_left_mergeable() argument 650 unsigned long bsize) in errcatch_is_left_mergeable() argument
|
/fs/ext4/ |
D | fast_commit.c | 605 int bsize = sbi->s_journal->j_blocksize; in ext4_fc_reserve_space() local 606 int ret, off = sbi->s_fc_bytes % bsize; in ext4_fc_reserve_space() 613 if (len + sizeof(struct ext4_fc_tl) > bsize) in ext4_fc_reserve_space() 616 if (bsize - off - 1 > len + sizeof(struct ext4_fc_tl)) { in ext4_fc_reserve_space() 633 pad_len = bsize - off - 1 - sizeof(struct ext4_fc_tl); in ext4_fc_reserve_space() 648 sbi->s_fc_bytes = (sbi->s_fc_bytes / bsize + 1) * bsize + len; in ext4_fc_reserve_space() 674 int off, bsize = sbi->s_journal->j_blocksize; in ext4_fc_write_tail() local 685 off = sbi->s_fc_bytes % bsize; in ext4_fc_write_tail() 688 tl.fc_len = cpu_to_le16(bsize - off - 1 + sizeof(struct ext4_fc_tail)); in ext4_fc_write_tail() 689 sbi->s_fc_bytes = round_up(sbi->s_fc_bytes, bsize); in ext4_fc_write_tail() [all …]
|
/fs/gfs2/ |
D | glops.c | 178 const unsigned bsize = sdp->sd_sb.sb_bsize; in gfs2_rgrp_metasync() local 179 loff_t start = (rgd->rd_addr * bsize) & PAGE_MASK; in gfs2_rgrp_metasync() 180 loff_t end = PAGE_ALIGN((rgd->rd_addr + rgd->rd_length) * bsize) - 1; in gfs2_rgrp_metasync() 235 const unsigned bsize = sdp->sd_sb.sb_bsize; in rgrp_go_inval() local 236 loff_t start = (rgd->rd_addr * bsize) & PAGE_MASK; in rgrp_go_inval() 237 loff_t end = PAGE_ALIGN((rgd->rd_addr + rgd->rd_length) * bsize) - 1; in rgrp_go_inval()
|
D | lops.c | 510 unsigned int bsize = sdp->sd_sb.sb_bsize, off; in gfs2_find_jhead() local 545 sz = bio_add_page(bio, page, bsize, off); in gfs2_find_jhead() 546 if (sz == bsize) in gfs2_find_jhead() 566 sz = bio_add_page(bio, page, bsize, off); in gfs2_find_jhead() 567 BUG_ON(sz != bsize); in gfs2_find_jhead() 569 off += bsize; in gfs2_find_jhead()
|
D | quota.c | 723 unsigned bsize = sdp->sd_sb.sb_bsize, bnum = 0, boff = 0; in gfs2_write_buf_to_page() local 728 boff = off % bsize; in gfs2_write_buf_to_page() 734 create_empty_buffers(page, bsize, 0); in gfs2_write_buf_to_page() 739 if (pg_off >= ((bnum * bsize) + bsize)) { in gfs2_write_buf_to_page() 751 zero_user(page, bnum * bsize, bh->b_size); in gfs2_write_buf_to_page() 767 if (to_write > (bsize - boff)) { in gfs2_write_buf_to_page() 768 pg_off += (bsize - boff); in gfs2_write_buf_to_page() 769 to_write -= (bsize - boff); in gfs2_write_buf_to_page() 770 boff = pg_off % bsize; in gfs2_write_buf_to_page()
|
/fs/udf/ |
D | truncate.c | 130 int bsize = 1 << inode->i_blkbits; in udf_discard_prealloc() local 133 ALIGN(inode->i_size, bsize) == ALIGN(iinfo->i_lenExtents, bsize)) in udf_discard_prealloc()
|
/fs/nfsd/ |
D | nfsctl.c | 900 int bsize; in write_maxblksize() local 901 int rv = get_int(&mesg, &bsize); in write_maxblksize() 907 bsize = max_t(int, bsize, 1024); in write_maxblksize() 908 bsize = min_t(int, bsize, NFSSVC_MAXBLKSIZE); in write_maxblksize() 909 bsize &= ~(1024-1); in write_maxblksize() 915 nfsd_max_blksize = bsize; in write_maxblksize()
|
/fs/xfs/libxfs/ |
D | xfs_da_format.h | 759 static inline int xfs_attr_leaf_entsize_local_max(int bsize) in xfs_attr_leaf_entsize_local_max() argument 761 return (((bsize) >> 1) + ((bsize) >> 2)); in xfs_attr_leaf_entsize_local_max()
|
/fs/sysv/ |
D | super.c | 309 int bsize = 1 << n_bits; in complete_read_super() local 310 int bsize_4 = bsize >> 2; in complete_read_super() 317 sbi->s_inodes_per_block = bsize >> 6; in complete_read_super() 318 sbi->s_inodes_per_block_1 = (bsize >> 6)-1; in complete_read_super()
|
/fs/cachefiles/ |
D | bind.c | 154 cache->bsize = stats.f_bsize; in cachefiles_daemon_add_cache() 160 cache->bsize, cache->bshift); in cachefiles_daemon_add_cache()
|
/fs/cifs/ |
D | cifs_fs_sb.h | 64 unsigned int bsize; member
|