Whamcloud - gitweb
LU-12518 llite: rename count and nob variables to bytes
[fs/lustre-release.git] / lustre / osc / osc_lock.c
index 91f9a36..d67c0b1 100644 (file)
@@ -1173,7 +1173,7 @@ void osc_lock_set_writer(const struct lu_env *env, const struct cl_io *io,
        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;