• Home
  • Raw
  • Download

Lines Matching refs:bsize

528 	u32 bidx, boff, bsize;  in affs_do_readpage_ofs()  local
534 bsize = AFFS_SB(sb)->s_data_blksize; in affs_do_readpage_ofs()
536 bidx = tmp / bsize; in affs_do_readpage_ofs()
537 boff = tmp % bsize; in affs_do_readpage_ofs()
543 tmp = min(bsize - boff, to - pos); in affs_do_readpage_ofs()
544 BUG_ON(pos + tmp > to || tmp > bsize); in affs_do_readpage_ofs()
563 u32 size, bsize; in affs_extent_file_ofs() local
567 bsize = AFFS_SB(sb)->s_data_blksize; in affs_extent_file_ofs()
570 bidx = size / bsize; in affs_extent_file_ofs()
571 boff = size % bsize; in affs_extent_file_ofs()
576 tmp = min(bsize - boff, newsize - size); in affs_extent_file_ofs()
577 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_extent_file_ofs()
595 tmp = min(bsize, newsize - size); in affs_extent_file_ofs()
596 BUG_ON(tmp > bsize); in affs_extent_file_ofs()
616 size += bsize; in affs_extent_file_ofs()
695 u32 bidx, boff, bsize; in affs_write_end_ofs() local
710 bsize = AFFS_SB(sb)->s_data_blksize; in affs_write_end_ofs()
716 bidx = tmp / bsize; in affs_write_end_ofs()
717 boff = tmp % bsize; in affs_write_end_ofs()
724 tmp = min(bsize - boff, to - from); in affs_write_end_ofs()
725 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_write_end_ofs()
740 while (from + bsize <= to) { in affs_write_end_ofs()
745 memcpy(AFFS_DATA(bh), data + from, bsize); in affs_write_end_ofs()
750 AFFS_DATA_HEAD(bh)->size = cpu_to_be32(bsize); in affs_write_end_ofs()
768 written += bsize; in affs_write_end_ofs()
769 from += bsize; in affs_write_end_ofs()
777 tmp = min(bsize, to - from); in affs_write_end_ofs()
778 BUG_ON(tmp > bsize); in affs_write_end_ofs()