/fs/affs/ |
D | file.c | 510 u32 bidx, boff, bsize; in affs_do_readpage_ofs() local 516 bsize = AFFS_SB(sb)->s_data_blksize; in affs_do_readpage_ofs() 518 bidx = tmp / bsize; in affs_do_readpage_ofs() 519 boff = tmp % bsize; in affs_do_readpage_ofs() 525 tmp = min(bsize - boff, to - pos); in affs_do_readpage_ofs() 526 BUG_ON(pos + tmp > to || tmp > bsize); in affs_do_readpage_ofs() 545 u32 size, bsize; in affs_extent_file_ofs() local 549 bsize = AFFS_SB(sb)->s_data_blksize; in affs_extent_file_ofs() 552 bidx = size / bsize; in affs_extent_file_ofs() 553 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 | 211 u_long bsize; in vxfs_fill_super() local 224 bsize = sb_min_blocksize(sbp, BLOCK_SIZE); in vxfs_fill_super() 225 if (!bsize) { in vxfs_fill_super() 273 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/jfs/ |
D | jfs_mount.c | 298 s32 bsize; in chkSuper() local 314 bsize = le32_to_cpu(j_sb->s_bsize); in chkSuper() 316 if (bsize != PSIZE) { in chkSuper() 331 AIM_bytesize = lengthPXD(&(j_sb->s_aim2)) * bsize; in chkSuper() 333 AIT_bytesize = lengthPXD(&(j_sb->s_ait2)) * bsize; in chkSuper() 334 AIM_byte_addr = addressPXD(&(j_sb->s_aim2)) * bsize; in chkSuper() 335 AIT_byte_addr = addressPXD(&(j_sb->s_ait2)) * bsize; in chkSuper() 337 fsckwsp_addr = addressPXD(&(j_sb->s_fsckpxd)) * bsize; in chkSuper() 365 sbi->bsize = bsize; in chkSuper()
|
/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 | 93 unsigned int bsize; member 604 unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_bits() argument 607 if ((bsize & (bsize - 1)) || nrbitsp) { in nfs_block_bits() 610 for (nrbits = 31; nrbits && !(bsize & (1 << nrbits)); nrbits--) in nfs_block_bits() 612 bsize = 1 << nrbits; in nfs_block_bits() 617 return bsize; in nfs_block_bits() 633 unsigned long nfs_block_size(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_size() argument 635 if (bsize < NFS_MIN_FILE_IO_SIZE) in nfs_block_size() 636 bsize = NFS_DEF_FILE_IO_SIZE; in nfs_block_size() 637 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() 537 stat->tbytes = (u64)fsinfo.blocks * fsinfo.bsize; in nfs_proc_statfs() 538 stat->fbytes = (u64)fsinfo.bfree * fsinfo.bsize; in nfs_proc_statfs() 539 stat->abytes = (u64)fsinfo.bavail * fsinfo.bsize; in nfs_proc_statfs() 567 info->rtmult = fsinfo.bsize; in nfs_proc_fsinfo() 570 info->wtmult = fsinfo.bsize; in nfs_proc_fsinfo()
|
D | pagelist.c | 680 unsigned int bsize) in nfs_pageio_mirror_init() argument 685 mirror->pg_bsize = bsize; in nfs_pageio_mirror_init() 705 size_t bsize, in nfs_pageio_init() argument 718 desc->pg_bsize = bsize; in nfs_pageio_init() 725 nfs_pageio_mirror_init(&desc->pg_mirrors[0], bsize); in nfs_pageio_init()
|
D | super.c | 656 if (nfss->bsize != 0) in nfs_show_mount_options() 657 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_mount_options() 849 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_stats() 1376 mnt->bsize = option; in nfs_parse_mount_options() 2023 data->bsize = 0; /* fall through */ in nfs23_validate_mount_data() 2084 args->bsize = data->bsize; in nfs23_validate_mount_data() 2375 if (data && data->bsize) in nfs_fill_super() 2376 sb->s_blocksize = nfs_block_size(data->bsize, &sb->s_blocksize_bits); in nfs_fill_super()
|
/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/nfsd/ |
D | nfsctl.c | 897 int bsize; in write_maxblksize() local 898 int rv = get_int(&mesg, &bsize); in write_maxblksize() 904 bsize = max_t(int, bsize, 1024); in write_maxblksize() 905 bsize = min_t(int, bsize, NFSSVC_MAXBLKSIZE); in write_maxblksize() 906 bsize &= ~(1024-1); in write_maxblksize() 912 nfsd_max_blksize = bsize; in write_maxblksize()
|
/fs/gfs2/ |
D | lops.c | 490 unsigned int bsize = sdp->sd_sb.sb_bsize; in gfs2_find_jhead() local 524 sz = bio_add_page(bio, page, bsize, off); in gfs2_find_jhead() 525 if (sz == bsize) { /* block added */ in gfs2_find_jhead() 526 if (off + bsize == PAGE_SIZE) { in gfs2_find_jhead() 540 sz = bio_add_page(bio, page, bsize, 0); in gfs2_find_jhead() 541 gfs2_assert_warn(sdp, sz == bsize); in gfs2_find_jhead() 542 if (bsize == PAGE_SIZE) in gfs2_find_jhead()
|
D | quota.c | 697 unsigned bsize = sdp->sd_sb.sb_bsize, bnum = 0, boff = 0; in gfs2_write_buf_to_page() local 702 boff = off % bsize; in gfs2_write_buf_to_page() 708 create_empty_buffers(page, bsize, 0); in gfs2_write_buf_to_page() 713 if (pg_off >= ((bnum * bsize) + bsize)) { in gfs2_write_buf_to_page() 725 zero_user(page, bnum * bsize, bh->b_size); in gfs2_write_buf_to_page() 741 if (to_write > (bsize - boff)) { in gfs2_write_buf_to_page() 742 pg_off += (bsize - boff); in gfs2_write_buf_to_page() 743 to_write -= (bsize - boff); in gfs2_write_buf_to_page() 744 boff = pg_off % bsize; in gfs2_write_buf_to_page()
|
/fs/xfs/libxfs/ |
D | xfs_da_format.h | 830 static inline int xfs_attr_leaf_entsize_local_max(int bsize) in xfs_attr_leaf_entsize_local_max() argument 832 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
|
/fs/nilfs2/ |
D | alloc.c | 382 unsigned int bsize, in nilfs_palloc_find_available_slot() argument 385 int pos, end = bsize; in nilfs_palloc_find_available_slot() 387 if (likely(target < bsize)) { in nilfs_palloc_find_available_slot()
|
/fs/ |
D | block_dev.c | 109 unsigned bsize = bdev_logical_block_size(bdev); in set_init_blocksize() local 112 while (bsize < PAGE_SIZE) { in set_init_blocksize() 113 if (size & bsize) in set_init_blocksize() 115 bsize <<= 1; in set_init_blocksize() 117 bdev->bd_block_size = bsize; in set_init_blocksize() 118 bdev->bd_inode->i_blkbits = blksize_bits(bsize); in set_init_blocksize()
|