Whamcloud - gitweb
LU-2800 autoconf: remove obsolete autoconf options
[fs/lustre-release.git] / lustre / llite / vvp_object.c
index 20dcdf9..c60b22a 100644 (file)
@@ -27,7 +27,7 @@
  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2012, Intel Corporation.
+ * Copyright (c) 2012, 2013, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -128,6 +128,11 @@ int vvp_conf_set(const struct lu_env *env, struct cl_object *obj,
 {
        struct ll_inode_info *lli = ll_i2info(conf->coc_inode);
 
+       if (conf->coc_opc == OBJECT_CONF_INVALIDATE) {
+               lli->lli_layout_gen = LL_LAYOUT_GEN_NONE;
+               return 0;
+       }
+
        if (conf->coc_opc != OBJECT_CONF_SET)
                return 0;
 
@@ -143,7 +148,7 @@ int vvp_conf_set(const struct lu_env *env, struct cl_object *obj,
                        lli->lli_layout_gen);
 
                lli->lli_has_smd = false;
-               lli->lli_layout_gen = LL_LAYOUT_GEN_ZERO;
+               lli->lli_layout_gen = LL_LAYOUT_GEN_EMPTY;
        }
        return 0;
 }