if (likely(io->ci_type == CIT_WRITE)) {
io_start = io->u.ci_rw.crw_pos >> PAGE_SHIFT;
io_end = (io->u.ci_rw.crw_pos +
- io->u.ci_rw.crw_count - 1) >> PAGE_SHIFT;
+ io->u.ci_rw.crw_bytes - 1) >> PAGE_SHIFT;
} else {
LASSERT(cl_io_is_mkwrite(io));
io_start = io_end = io->u.ci_fault.ft_index;