Lines Matching refs:bsize
532 size_t bidx, boff, bsize;
538 bsize = AFFS_SB(sb)->s_data_blksize;
540 bidx = tmp / bsize;
541 boff = tmp % bsize;
547 tmp = min(bsize - boff, to - pos);
548 BUG_ON(pos + tmp > to || tmp > bsize);
564 u32 size, bsize;
568 bsize = AFFS_SB(sb)->s_data_blksize;
571 bidx = size / bsize;
572 boff = size % bsize;
577 tmp = min(bsize - boff, newsize - size);
578 BUG_ON(boff + tmp > bsize || tmp > bsize);
596 tmp = min(bsize, newsize - size);
597 BUG_ON(tmp > bsize);
617 size += bsize;
697 u32 bidx, boff, bsize;
712 bsize = AFFS_SB(sb)->s_data_blksize;
718 bidx = tmp / bsize;
719 boff = tmp % bsize;
726 tmp = min(bsize - boff, to - from);
727 BUG_ON(boff + tmp > bsize || tmp > bsize);
742 while (from + bsize <= to) {
747 memcpy(AFFS_DATA(bh), data + from, bsize);
752 AFFS_DATA_HEAD(bh)->size = cpu_to_be32(bsize);
770 written += bsize;
771 from += bsize;
779 tmp = min(bsize, to - from);
780 BUG_ON(tmp > bsize);