Lines Matching refs:size
33 sector_t *start, sector_t *size) in hfs_get_last_session() argument
41 *size = i_size_read(sb->s_bdev->bd_inode) >> 9; in hfs_get_last_session()
73 int off2, len, size, sect; in hfs_mdb_get() local
79 size = sb_min_blocksize(sb, HFS_SECTOR_SIZE); in hfs_mdb_get()
80 if (!size) in hfs_mdb_get()
102 HFS_SB(sb)->alloc_blksz = size = be32_to_cpu(mdb->drAlBlkSiz); in hfs_mdb_get()
103 if (!size || (size & (HFS_SECTOR_SIZE - 1))) { in hfs_mdb_get()
104 pr_err("bad allocation block size %d\n", size); in hfs_mdb_get()
108 size = min(HFS_SB(sb)->alloc_blksz, (u32)PAGE_SIZE); in hfs_mdb_get()
110 while (size & (size - 1)) in hfs_mdb_get()
111 size -= HFS_SECTOR_SIZE; in hfs_mdb_get()
114 while (sect & ((size - 1) >> HFS_SECTOR_SIZE_BITS)) in hfs_mdb_get()
115 size >>= 1; in hfs_mdb_get()
117 while (HFS_SB(sb)->alloc_blksz & (size - 1)) in hfs_mdb_get()
118 size >>= 1; in hfs_mdb_get()
120 if (!sb_set_blocksize(sb, size)) { in hfs_mdb_get()
121 pr_err("unable to set blocksize to %u\n", size); in hfs_mdb_get()
176 size = (HFS_SB(sb)->fs_ablocks + 8) / 8; in hfs_mdb_get()
178 while (size) { in hfs_mdb_get()
185 len = min((int)sb->s_blocksize - off2, size); in hfs_mdb_get()
190 size -= len; in hfs_mdb_get()
304 int off, size, len; in hfs_mdb_commit() local
309 size = (HFS_SB(sb)->fs_ablocks + 7) / 8; in hfs_mdb_commit()
311 while (size) { in hfs_mdb_commit()
317 len = min((int)sb->s_blocksize - off, size); in hfs_mdb_commit()
328 size -= len; in hfs_mdb_commit()