Whamcloud - gitweb
LU-3254 llite: access layout version under a lock
[fs/lustre-release.git] / lustre / llite / vvp_io.c
index 4c7d022..36ef95e 100644 (file)
@@ -83,7 +83,7 @@ static bool can_populate_pages(const struct lu_env *env, struct cl_io *io,
        case CIT_WRITE:
                /* don't need lock here to check lli_layout_gen as we have held
                 * extent lock and GROUP lock has to hold to swap layout */
-               if (lli->lli_layout_gen != cio->cui_layout_gen) {
+               if (ll_layout_version_get(lli) != cio->cui_layout_gen) {
                        io->ci_need_restart = 1;
                        /* this will return application a short read/write */
                        io->ci_continue = 0;