Whamcloud - gitweb
LU-8602 gss: autoconf check missing "test" keyword
[fs/lustre-release.git] / lustre / fld / lproc_fld.c
index 4ae4f26..3a985b3 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * version 2 along with this program; If not, see
- * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
+ * http://www.gnu.org/licenses/gpl-2.0.html
  *
  * GPL HEADER END
  */
@@ -27,7 +23,7 @@
  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2012, 2015, Intel Corporation.
+ * Copyright (c) 2012, 2016, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -141,7 +137,7 @@ lprocfs_cache_flush_seq_write(struct file *file, const char __user *buffer,
 
 LPROC_SEQ_FOPS_RO(fld_proc_targets);
 LPROC_SEQ_FOPS(fld_proc_hash);
-LPROC_SEQ_FOPS_WO_TYPE(fld, cache_flush);
+LPROC_SEQ_FOPS_WR_ONLY(fld, cache_flush);
 
 struct lprocfs_vars fld_client_proc_list[] = {
        { .name =       "targets",
@@ -263,7 +259,7 @@ static int fldb_seq_show(struct seq_file *p, void *v)
                       fld->lsf_name, rc);
        } else if (fld_rec->lsr_start != 0) {
                range_be_to_cpu(fld_rec, fld_rec);
-               rc = seq_printf(p, DRANGE"\n", PRANGE(fld_rec));
+               seq_printf(p, DRANGE"\n", PRANGE(fld_rec));
        }
 
        return rc;