Home
last modified time | relevance | path

Searched refs:bsize (Results 1 – 25 of 33) sorted by relevance

12

/fs/nfs/
Dinternal.h40 unsigned int bsize; member
215 unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_bits() argument
218 if ((bsize & (bsize - 1)) || nrbitsp) { in nfs_block_bits()
221 for (nrbits = 31; nrbits && !(bsize & (1 << nrbits)); nrbits--) in nfs_block_bits()
223 bsize = 1 << nrbits; in nfs_block_bits()
228 return bsize; in nfs_block_bits()
244 unsigned long nfs_block_size(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_size() argument
246 if (bsize < NFS_MIN_FILE_IO_SIZE) in nfs_block_size()
247 bsize = NFS_DEF_FILE_IO_SIZE; in nfs_block_size()
248 else if (bsize >= NFS_MAX_FILE_IO_SIZE) in nfs_block_size()
[all …]
Dproc.c87 info->rtmult = fsinfo.bsize; in nfs_proc_get_root()
90 info->wtmult = fsinfo.bsize; in nfs_proc_get_root()
512 stat->tbytes = (u64)fsinfo.blocks * fsinfo.bsize; in nfs_proc_statfs()
513 stat->fbytes = (u64)fsinfo.bfree * fsinfo.bsize; in nfs_proc_statfs()
514 stat->abytes = (u64)fsinfo.bavail * fsinfo.bsize; in nfs_proc_statfs()
542 info->rtmult = fsinfo.bsize; in nfs_proc_fsinfo()
545 info->wtmult = fsinfo.bsize; in nfs_proc_fsinfo()
Dpagelist.c221 size_t bsize, in nfs_pageio_init() argument
227 desc->pg_bsize = bsize; in nfs_pageio_init()
Dsuper.c529 if (nfss->bsize != 0) in nfs_show_mount_options()
530 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_mount_options()
612 seq_printf(m, ",bsize=%u", nfss->bsize); in nfs_show_stats()
1077 mnt->bsize = option; in nfs_parse_mount_options()
1568 data->bsize = 0; in nfs_validate_mount_data()
1619 args->bsize = data->bsize; in nfs_validate_mount_data()
1832 if (data->bsize) in nfs_fill_super()
1833 sb->s_blocksize = nfs_block_size(data->bsize, &sb->s_blocksize_bits); in nfs_fill_super()
/fs/affs/
Dfile.c493 u32 bidx, boff, bsize; in affs_do_readpage_ofs() local
500 bsize = AFFS_SB(sb)->s_data_blksize; in affs_do_readpage_ofs()
502 bidx = tmp / bsize; in affs_do_readpage_ofs()
503 boff = tmp % bsize; in affs_do_readpage_ofs()
509 tmp = min(bsize - boff, to - from); in affs_do_readpage_ofs()
510 BUG_ON(from + tmp > to || tmp > bsize); in affs_do_readpage_ofs()
528 u32 size, bsize; in affs_extent_file_ofs() local
532 bsize = AFFS_SB(sb)->s_data_blksize; in affs_extent_file_ofs()
535 bidx = size / bsize; in affs_extent_file_ofs()
536 boff = size % bsize; in affs_extent_file_ofs()
[all …]
Damigaffs.c342 int bsize; in affs_checksum_block() local
345 for (bsize = sb->s_blocksize / sizeof(__be32); bsize > 0; bsize--) in affs_checksum_block()
/fs/freevxfs/
Dvxfs_lookup.c73 u_long bsize = ip->i_sb->s_blocksize; in dir_blocks() local
74 return (ip->i_size + bsize - 1) & ~(bsize - 1); in dir_blocks()
116 u_long bsize = ip->i_sb->s_blocksize; in vxfs_find_entry() local
138 baddr = kaddr + (block * bsize); in vxfs_find_entry()
139 limit = baddr + bsize - VXFS_DIRLEN(1); in vxfs_find_entry()
245 u_long bsize = sbp->s_blocksize; in vxfs_readdir() local
293 baddr = kaddr + (block * bsize); in vxfs_readdir()
294 limit = baddr + bsize - VXFS_DIRLEN(1); in vxfs_readdir()
Dvxfs_olt.c57 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
85 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
Dvxfs_super.c153 u_long bsize; in vxfs_fill_super() local
165 bsize = sb_min_blocksize(sbp, BLOCK_SIZE); in vxfs_fill_super()
166 if (!bsize) { in vxfs_fill_super()
211 if (vxfs_read_olt(sbp, bsize)) { in vxfs_fill_super()
Dvxfs_bmap.c71 unsigned long bsize = sb->s_blocksize; in vxfs_bmap_ext4() local
85 if ((bn / (indsize * indsize * bsize / 4)) == 0) { in vxfs_bmap_ext4()
/fs/jfs/
Djfs_mount.c311 s32 bsize; in chkSuper() local
327 bsize = le32_to_cpu(j_sb->s_bsize); in chkSuper()
329 if (bsize != PSIZE) { in chkSuper()
344 AIM_bytesize = lengthPXD(&(j_sb->s_aim2)) * bsize; in chkSuper()
346 AIT_bytesize = lengthPXD(&(j_sb->s_ait2)) * bsize; in chkSuper()
347 AIM_byte_addr = addressPXD(&(j_sb->s_aim2)) * bsize; in chkSuper()
348 AIT_byte_addr = addressPXD(&(j_sb->s_ait2)) * bsize; in chkSuper()
350 fsckwsp_addr = addressPXD(&(j_sb->s_fsckpxd)) * bsize; in chkSuper()
378 sbi->bsize = bsize; in chkSuper()
Djfs_incore.h172 short bsize; /* logical block size */ member
Djfs_logmgr.h69 __le32 bsize; /* 4: logical block size in byte */ member
Djfs_dmap.c3796 int l2max, l2free, bsize, nextb, i; in dbInitTree() local
3819 for (l2free = dtp->budmin, bsize = 1; l2free < l2max; in dbInitTree()
3820 l2free++, bsize = nextb) { in dbInitTree()
3822 nextb = bsize << 1; in dbInitTree()
3829 if (*cp == l2free && *(cp + bsize) == l2free) { in dbInitTree()
3831 *(cp + bsize) = -1; /* right give left */ in dbInitTree()
/fs/xfs/
Dxfs_attr_leaf.h190 static inline int xfs_attr_leaf_entsize_local_max(int bsize) in xfs_attr_leaf_entsize_local_max() argument
192 return (((bsize) >> 1) + ((bsize) >> 2)); in xfs_attr_leaf_entsize_local_max()
/fs/squashfs/
Dfile.c403 int bsize = read_blocklist(inode, index, &block); in squashfs_readpage() local
404 if (bsize < 0) in squashfs_readpage()
407 if (bsize == 0) { /* hole */ in squashfs_readpage()
417 block, bsize); in squashfs_readpage()
420 "\n", block, bsize); in squashfs_readpage()
/fs/nfsd/
Dnfsctl.c1088 int bsize; in write_maxblksize() local
1089 int rv = get_int(&mesg, &bsize); in write_maxblksize()
1095 if (bsize < 1024) in write_maxblksize()
1096 bsize = 1024; in write_maxblksize()
1097 if (bsize > NFSSVC_MAXBLKSIZE) in write_maxblksize()
1098 bsize = NFSSVC_MAXBLKSIZE; in write_maxblksize()
1099 bsize &= ~(1024-1); in write_maxblksize()
1105 nfsd_max_blksize = bsize; in write_maxblksize()
/fs/reiserfs/
Ditem_ops.c29 static int sd_is_left_mergeable(struct reiserfs_key *key, unsigned long bsize) in sd_is_left_mergeable() argument
136 unsigned long bsize) in direct_is_left_mergeable() argument
139 return ((le_key_k_offset(version, key) & (bsize - 1)) != 1); in direct_is_left_mergeable()
231 unsigned long bsize) in indirect_is_left_mergeable() argument
375 unsigned long bsize) in direntry_is_left_mergeable() argument
657 unsigned long bsize) in errcatch_is_left_mergeable() argument
/fs/sysv/
Dsuper.c308 int bsize = 1 << n_bits; in complete_read_super() local
309 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/
Dblock_dev.c967 unsigned bsize = bdev_hardsect_size(bdev); in bd_set_size() local
970 while (bsize < PAGE_CACHE_SIZE) { in bd_set_size()
971 if (size & bsize) in bd_set_size()
973 bsize <<= 1; in bd_set_size()
975 bdev->bd_block_size = bsize; in bd_set_size()
976 bdev->bd_inode->i_blkbits = blksize_bits(bsize); in bd_set_size()
/fs/ocfs2/
Daops.c792 unsigned int bsize = 1 << inode->i_blkbits; in ocfs2_map_page_blocks() local
795 create_empty_buffers(page, bsize, 0); in ocfs2_map_page_blocks()
799 bh = bh->b_this_page, block_start += bsize) { in ocfs2_map_page_blocks()
800 block_end = block_start + bsize; in ocfs2_map_page_blocks()
859 block_end = block_start + bsize; in ocfs2_map_page_blocks()
/fs/gfs2/
Dbmap.c570 unsigned int bsize = sdp->sd_sb.sb_bsize; in gfs2_block_map() local
590 bsize = sdp->sd_jbsize; in gfs2_block_map()
599 size = (lblock + 1) * bsize; in gfs2_block_map()
Dops_address.c45 unsigned int bsize = head->b_size; in gfs2_page_add_databufs() local
51 end = start + bsize; in gfs2_page_add_databufs()
/fs/udf/
Dnamei.c901 uint32_t bsize; in udf_symlink() local
914 bsize = inode->i_sb->s_blocksize; in udf_symlink()
915 iinfo->i_lenExtents = bsize; in udf_symlink()
916 udf_add_aext(inode, &epos, eloc, bsize, 0); in udf_symlink()
/fs/xfs/linux-2.6/
Dxfs_aops.c218 xfs_fsize_t bsize; in xfs_setfilesize() local
226 bsize = ioend->io_offset + ioend->io_size; in xfs_setfilesize()
231 isize = MIN(isize, bsize); in xfs_setfilesize()

12