Lines Matching defs:logical_block_size
122 int logical_block_size, mask, ok;
130 logical_block_size = bdev_logical_block_size(bdev->md_bdev);
131 if (logical_block_size == 0)
132 logical_block_size = MD_SECTOR_SIZE;
134 /* in case logical_block_size != 512 [ s390 only? ] */
135 if (logical_block_size != MD_SECTOR_SIZE) {
136 mask = (logical_block_size / MD_SECTOR_SIZE) - 1;
138 D_ASSERT(logical_block_size == (mask+1) * MD_SECTOR_SIZE);
150 READ, logical_block_size);
154 "READ [logical_block_size!=512]) failed!\n",
169 ok = _drbd_md_sync_page_io(mdev, bdev, iop, sector, rw, logical_block_size);
176 if (logical_block_size != MD_SECTOR_SIZE && !(rw & WRITE)) {
558 * so we can ignore the logical_block_size (for now) */