Whamcloud - gitweb
LU-5592 ofd: fix incorrect check for NULL 73/11773/2
authorDmitry Eremin <dmitry.eremin@intel.com>
Fri, 5 Sep 2014 14:36:31 +0000 (18:36 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 11 Sep 2014 19:54:33 +0000 (19:54 +0000)
Fix incorrect check for NULL in ofd_version_get_check()

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: Ia671f86ab051eafa5336ba18f0378cdac846f0c5
Reviewed-on: http://review.whamcloud.com/11773
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
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));