Whamcloud - gitweb
LU-1812 ext4: ec_type has been dropped from ext4_ext_cache
[fs/lustre-release.git] / lustre / fld / lproc_fld.c
index ab3fa11..c68f3c4 100644 (file)
@@ -27,7 +27,7 @@
  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2011, 2012, Whamcloud, Inc.
+ * Copyright (c) 2012, 2013, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -158,7 +158,7 @@ struct fld_seq_param {
        struct lu_env           fsp_env;
        struct dt_it            *fsp_it;
        struct lu_server_fld    *fsp_fld;
-       int                     fsp_stop:1;
+       unsigned int            fsp_stop:1;
 };
 
 static void *fldb_seq_start(struct seq_file *p, loff_t *pos)
@@ -189,13 +189,15 @@ static void fldb_seq_stop(struct seq_file *p, void *v)
        struct lu_server_fld    *fld;
        struct dt_object        *obj;
 
+       if (param == NULL)
+               return;
+
        fld = param->fsp_fld;
        obj = fld->lsf_obj;
        LASSERT(obj != NULL);
        iops = &obj->do_index_ops->dio_it;
 
        iops->put(&param->fsp_env, param->fsp_it);
-       return;
 }
 
 static void *fldb_seq_next(struct seq_file *p, void *v, loff_t *pos)