Whamcloud - gitweb
* Removed spurious LASSERT from lob_sublock_env_get() - the preceding 'if'
authoreeb <eeb>
Tue, 29 Sep 2009 13:40:39 +0000 (13:40 +0000)
committereeb <eeb>
Tue, 29 Sep 2009 13:40:39 +0000 (13:40 +0000)
  expression will SEGV before the LASSERT fails.

lustre/lov/lov_lock.c

index 157ee7d..c65b1a7 100644 (file)
@@ -80,7 +80,6 @@ static struct lov_sublock_env *lov_sublock_env_get(const struct lu_env *env,
                 subenv->lse_io  = io;
                 subenv->lse_sub = NULL;
         } else {
-                LASSERT(io != NULL);
                 sub = lov_sub_get(env, lio, lls->sub_stripe);
                 if (!IS_ERR(sub)) {
                         subenv->lse_env = sub->sub_env;