Whamcloud - gitweb
LU-5592 ofd: fix incorrect check for NULL
[fs/lustre-release.git] / lustre / ofd / ofd_objects.c
index 9ce41e4..b6fcd4a 100644 (file)
@@ -67,7 +67,7 @@ int ofd_version_get_check(struct ofd_thread_info *info,
 
        LASSERT(ofd_object_exists(fo));
 
-       if (info->fti_exp)
+       if (info->fti_exp == NULL)
                RETURN(0);
 
        curr_version = dt_version_get(info->fti_env, ofd_object_child(fo));