| /fs/jfs/ |
| A D | jfs_mount.c | 297 s32 bsize; in chkSuper() local 313 bsize = le32_to_cpu(j_sb->s_bsize); in chkSuper() 314 if (bsize != PSIZE) { in chkSuper() 328 AIM_bytesize = lengthPXD(&(j_sb->s_aim2)) * bsize; in chkSuper() 330 AIT_bytesize = lengthPXD(&(j_sb->s_ait2)) * bsize; in chkSuper() 331 AIM_byte_addr = addressPXD(&(j_sb->s_aim2)) * bsize; in chkSuper() 332 AIT_byte_addr = addressPXD(&(j_sb->s_ait2)) * bsize; in chkSuper() 334 fsckwsp_addr = addressPXD(&(j_sb->s_fsckpxd)) * bsize; in chkSuper() 362 sbi->bsize = bsize; in chkSuper() 366 if (sbi->l2bsize != ilog2((u32)bsize) || in chkSuper()
|
| /fs/affs/ |
| A D | file.c | 541 bidx = tmp / bsize; in affs_do_read_folio_ofs() 542 boff = tmp % bsize; in affs_do_read_folio_ofs() 565 u32 size, bsize; in affs_extent_file_ofs() local 572 bidx = size / bsize; in affs_extent_file_ofs() 579 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_extent_file_ofs() 618 size += bsize; in affs_extent_file_ofs() 720 bidx = tmp / bsize; in affs_write_end_ofs() 721 boff = tmp % bsize; in affs_write_end_ofs() 729 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_write_end_ofs() 773 written += bsize; in affs_write_end_ofs() [all …]
|
| A 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/ |
| A D | vxfs_lookup.c | 59 u_long bsize = ip->i_sb->s_blocksize; in vxfs_find_entry() local 80 if ((pos & (bsize - 1)) < 4) { in vxfs_find_entry() 92 pos += bsize - 1; in vxfs_find_entry() 93 pos &= ~(bsize - 1); in vxfs_find_entry() 194 u_long bsize = sbp->s_blocksize; in vxfs_readdir() local 230 if ((pos & (bsize - 1)) < 4) { in vxfs_readdir() 242 pos += bsize - 1; in vxfs_readdir() 243 pos &= ~(bsize - 1); in vxfs_readdir()
|
| A D | vxfs_olt.c | 33 vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) in vxfs_oblock() argument 35 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock() 36 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock() 53 vxfs_read_olt(struct super_block *sbp, u_long bsize) in vxfs_read_olt() argument 60 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
|
| A D | vxfs_super.c | 188 u_long bsize; in vxfs_fill_super() local 202 bsize = sb_min_blocksize(sbp, BLOCK_SIZE); in vxfs_fill_super() 203 if (!bsize) { in vxfs_fill_super() 251 if (vxfs_read_olt(sbp, bsize)) { in vxfs_fill_super()
|
| A D | vxfs_bmap.c | 48 unsigned long bsize = sb->s_blocksize; in vxfs_bmap_ext4() local 62 if ((bn / (indsize * indsize * bsize / 4)) == 0) { in vxfs_bmap_ext4()
|
| /fs/squashfs/ |
| A D | file_cache.c | 21 int squashfs_readpage_block(struct folio *folio, u64 block, int bsize, int expected) in squashfs_readpage_block() argument 25 block, bsize); in squashfs_readpage_block() 30 bsize); in squashfs_readpage_block()
|
| A D | file_direct.c | 22 int squashfs_readpage_block(struct folio *folio, u64 block, int bsize, in squashfs_readpage_block() argument 76 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); in squashfs_readpage_block()
|
| A D | file.c | 587 int res, bsize; in squashfs_readahead() local 614 bsize = read_blocklist(inode, start >> msblk->block_log, &block); in squashfs_readahead() 615 if (bsize == 0) in squashfs_readahead() 623 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); in squashfs_readahead()
|
| A D | squashfs.h | 80 int squashfs_readpage_block(struct folio *, u64 block, int bsize, int expected);
|
| /fs/nfs/ |
| A D | internal.h | 106 unsigned int bsize; member 767 unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_bits() argument 770 if ((bsize & (bsize - 1)) || nrbitsp) { in nfs_block_bits() 773 for (nrbits = 31; nrbits && !(bsize & (1UL << nrbits)); nrbits--) in nfs_block_bits() 775 bsize = 1UL << nrbits; in nfs_block_bits() 780 return bsize; in nfs_block_bits() 798 if (bsize < NFS_MIN_FILE_IO_SIZE) in nfs_block_size() 799 bsize = NFS_DEF_FILE_IO_SIZE; in nfs_block_size() 800 else if (bsize >= NFS_MAX_FILE_IO_SIZE) in nfs_block_size() 801 bsize = NFS_MAX_FILE_IO_SIZE; in nfs_block_size() [all …]
|
| A D | proc.c | 87 info->rtmult = fsinfo.bsize; in nfs_proc_get_root() 90 info->wtmult = fsinfo.bsize; in nfs_proc_get_root() 552 stat->tbytes = (u64)fsinfo.blocks * fsinfo.bsize; in nfs_proc_statfs() 553 stat->fbytes = (u64)fsinfo.bfree * fsinfo.bsize; in nfs_proc_statfs() 554 stat->abytes = (u64)fsinfo.bavail * fsinfo.bsize; in nfs_proc_statfs() 582 info->rtmult = fsinfo.bsize; in nfs_proc_fsinfo() 585 info->wtmult = fsinfo.bsize; in nfs_proc_fsinfo()
|
| A D | super.c | 473 if (nfss->bsize != 0) in nfs_show_mount_options() 474 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_mount_options() 696 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_stats() 1104 if (ctx->bsize) in nfs_fill_super() 1105 sb->s_blocksize = nfs_block_size(ctx->bsize, &sb->s_blocksize_bits); in nfs_fill_super() 1364 unsigned bsize = ctx->clone_data.inherited_bsize; in nfs_get_tree_common() local 1367 if (bsize) { in nfs_get_tree_common() 1368 s->s_blocksize_bits = bsize; in nfs_get_tree_common() 1369 s->s_blocksize = 1U << bsize; in nfs_get_tree_common()
|
| A D | pagelist.c | 798 unsigned int bsize) in nfs_pageio_mirror_init() argument 803 mirror->pg_bsize = bsize; in nfs_pageio_mirror_init() 823 size_t bsize, in nfs_pageio_init() argument 837 desc->pg_bsize = bsize; in nfs_pageio_init() 844 nfs_pageio_mirror_init(&desc->pg_mirrors[0], bsize); in nfs_pageio_init()
|
| /fs/udf/ |
| A D | truncate.c | 132 int bsize = i_blocksize(inode); in udf_discard_prealloc() local 137 ALIGN(inode->i_size, bsize) == ALIGN(iinfo->i_lenExtents, bsize)) in udf_discard_prealloc() 164 DIV_ROUND_UP(elen, bsize)); in udf_discard_prealloc()
|
| A D | namei.c | 606 uint32_t bsize; in udf_symlink() local 619 bsize = sb->s_blocksize; in udf_symlink() 620 iinfo->i_lenExtents = bsize; in udf_symlink() 621 err = udf_add_aext(inode, &epos, &eloc, bsize, 0); in udf_symlink() 638 memset(epos.bh->b_data, 0x00, bsize); in udf_symlink()
|
| /fs/ext4/ |
| A D | fast_commit.c | 698 int bsize = sbi->s_journal->j_blocksize; in ext4_fc_reserve_space() local 699 int ret, off = sbi->s_fc_bytes % bsize; in ext4_fc_reserve_space() 707 if (len > bsize - EXT4_FC_TAG_BASE_LEN) in ext4_fc_reserve_space() 722 remaining = bsize - EXT4_FC_TAG_BASE_LEN - off; in ext4_fc_reserve_space() 745 sbi->s_fc_bytes += bsize - off + len; in ext4_fc_reserve_space() 762 int off, bsize = sbi->s_journal->j_blocksize; in ext4_fc_write_tail() local 773 off = sbi->s_fc_bytes % bsize; in ext4_fc_write_tail() 777 sbi->s_fc_bytes = round_up(sbi->s_fc_bytes, bsize); in ext4_fc_write_tail() 1201 int nblks = 0, ret, bsize = journal->j_blocksize; in ext4_fc_commit() local 1253 fc_bufs_before = (sbi->s_fc_bytes + bsize - 1) / bsize; in ext4_fc_commit() [all …]
|
| /fs/gfs2/ |
| A D | glops.c | 174 const unsigned bsize = sdp->sd_sb.sb_bsize; in gfs2_rgrp_metasync() local 175 loff_t start = (rgd->rd_addr * bsize) & PAGE_MASK; in gfs2_rgrp_metasync() 176 loff_t end = PAGE_ALIGN((rgd->rd_addr + rgd->rd_length) * bsize) - 1; in gfs2_rgrp_metasync() 231 const unsigned bsize = sdp->sd_sb.sb_bsize; in rgrp_go_inval() local 236 start = (rgd->rd_addr * bsize) & PAGE_MASK; in rgrp_go_inval() 237 end = PAGE_ALIGN((rgd->rd_addr + rgd->rd_length) * bsize) - 1; in rgrp_go_inval()
|
| A D | quota.c | 734 unsigned bsize = sdp->sd_sb.sb_bsize, bnum = 0, boff = 0; in gfs2_write_buf_to_page() local 738 boff = off % bsize; in gfs2_write_buf_to_page() 745 bh = create_empty_buffers(folio, bsize, 0); in gfs2_write_buf_to_page() 749 if (pg_off >= ((bnum * bsize) + bsize)) { in gfs2_write_buf_to_page() 761 folio_zero_range(folio, bnum * bsize, in gfs2_write_buf_to_page() 771 if (to_write > (bsize - boff)) { in gfs2_write_buf_to_page() 772 pg_off += (bsize - boff); in gfs2_write_buf_to_page() 773 to_write -= (bsize - boff); in gfs2_write_buf_to_page() 774 boff = pg_off % bsize; in gfs2_write_buf_to_page()
|
| /fs/xfs/libxfs/ |
| A D | xfs_da_format.h | 851 static inline int xfs_attr_leaf_entsize_local_max(int bsize) in xfs_attr_leaf_entsize_local_max() argument 853 return (((bsize) >> 1) + ((bsize) >> 2)); in xfs_attr_leaf_entsize_local_max()
|
| /fs/nfsd/ |
| A D | nfsctl.c | 877 int bsize; in write_maxblksize() local 878 int rv = get_int(&mesg, &bsize); in write_maxblksize() 881 trace_nfsd_ctl_maxblksize(netns(file), bsize); in write_maxblksize() 886 bsize = max_t(int, bsize, 1024); in write_maxblksize() 887 bsize = min_t(int, bsize, NFSSVC_MAXBLKSIZE); in write_maxblksize() 888 bsize &= ~(1024-1); in write_maxblksize() 894 nfsd_max_blksize = bsize; in write_maxblksize()
|
| /fs/xfs/ |
| A D | xfs_buf.h | 315 static inline void xfs_buf_zero(struct xfs_buf *bp, size_t boff, size_t bsize) in xfs_buf_zero() argument 317 memset(bp->b_addr + boff, 0, bsize); in xfs_buf_zero()
|
| /fs/cachefiles/ |
| A D | io.c | 215 granularity = max_t(size_t, object->volume->cache->bsize, granularity); in cachefiles_query_occupancy() 445 off = round_up(off, cache->bsize); in cachefiles_do_prepare_read() 464 to = round_up(to, cache->bsize); in cachefiles_do_prepare_read() 466 to = round_down(to, cache->bsize); in cachefiles_do_prepare_read()
|
| A D | cache.c | 95 cache->bsize = stats.f_bsize; in cachefiles_add_cache() 99 cache->bsize, cache->bshift); in cachefiles_add_cache()
|