Whamcloud - gitweb
LU-4198 clio: generalize cl_sync_io
[fs/lustre-release.git] / lustre / obdclass / cl_page.c
index 7badb8b..d877717 100644 (file)
@@ -963,10 +963,10 @@ void cl_page_completion(const struct lu_env *env,
         */
        cl_page_put(env, pg);
 
-       if (anchor)
-                cl_sync_io_note(anchor, ioret);
+       if (anchor != NULL)
+               cl_sync_io_note(env, anchor, ioret);
 
-        EXIT;
+       EXIT;
 }
 EXPORT_SYMBOL(cl_page_completion);