Whamcloud - gitweb
LU-668 mdd: Rename MDS_*_FL to LUSTRE_*_FL and update usage
[fs/lustre-release.git] / lustre / fid / lproc_fid.c
index b8fdca3..633607d 100644 (file)
@@ -26,7 +26,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright  2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  */
 /*
@@ -94,7 +94,7 @@ seq_proc_read_common(char *page, char **start, off_t off,
        ENTRY;
 
         *eof = 1;
-        rc = snprintf(page, count, "["LPX64" - "LPX64"]:%x\n",
+        rc = snprintf(page, count, "["LPX64" - "LPX64"]:%x:%x\n",
                       PRANGE(range));
        RETURN(rc);
 }
@@ -272,8 +272,10 @@ seq_client_proc_write_width(struct file *file, const char *buffer,
         cfs_down(&seq->lcs_sem);
 
         rc = lprocfs_write_helper(buffer, count, &val);
-        if (rc)
+        if (rc) {
+                cfs_up(&seq->lcs_sem);
                 RETURN(rc);
+        }
 
         if (val <= LUSTRE_SEQ_MAX_WIDTH && val > 0) {
                 seq->lcs_width = val;