Whamcloud - gitweb
b=17167 libcfs: ensure all libcfs exported symbols to have cfs_ prefix
[fs/lustre-release.git] / lustre / obdfilter / lproc_obdfilter.c
index e18d6e9..59b79e1 100644 (file)
@@ -183,7 +183,8 @@ int lprocfs_filter_rd_fmd_max_age(char *page, char **start, off_t off,
         struct obd_device *obd = data;
         int rc;
 
-        rc = snprintf(page, count, "%u\n", obd->u.filter.fo_fmd_max_age / HZ);
+        rc = snprintf(page, count, "%u\n",
+                      obd->u.filter.fo_fmd_max_age / CFS_HZ);
         return rc;
 }
 
@@ -201,7 +202,7 @@ int lprocfs_filter_wr_fmd_max_age(struct file *file, const char *buffer,
         if (val > 65536 || val < 1)
                 return -EINVAL;
 
-        obd->u.filter.fo_fmd_max_age = val * HZ;
+        obd->u.filter.fo_fmd_max_age = val * CFS_HZ;
         return count;
 }
 
@@ -299,9 +300,9 @@ static int lprocfs_filter_wr_cache(struct file *file, const char *buffer,
         if (rc)
                 return rc;
 
-        spin_lock_bh(&obd->obd_processing_task_lock);
+        cfs_spin_lock_bh(&obd->obd_processing_task_lock);
         obd->u.filter.fo_read_cache = val;
-        spin_unlock_bh(&obd->obd_processing_task_lock);
+        cfs_spin_unlock_bh(&obd->obd_processing_task_lock);
         return count;
 }
 
@@ -326,9 +327,9 @@ static int lprocfs_filter_wr_wcache(struct file *file, const char *buffer,
         if (rc)
                 return rc;
 
-        spin_lock_bh(&obd->obd_processing_task_lock);
+        cfs_spin_lock_bh(&obd->obd_processing_task_lock);
         obd->u.filter.fo_writethrough_cache = val;
-        spin_unlock_bh(&obd->obd_processing_task_lock);
+        cfs_spin_unlock_bh(&obd->obd_processing_task_lock);
         return count;
 }
 
@@ -359,9 +360,9 @@ int lprocfs_filter_wr_degraded(struct file *file, const char *buffer,
         if (rc)
                 return rc;
 
-        spin_lock(&obd->obd_osfs_lock);
+        cfs_spin_lock(&obd->obd_osfs_lock);
         obd->u.filter.fo_raid_degraded = !!val;
-        spin_unlock(&obd->obd_osfs_lock);
+        cfs_spin_unlock(&obd->obd_osfs_lock);
         return count;
 }
 
@@ -508,7 +509,7 @@ static void brw_stats_show(struct seq_file *seq, struct brw_stats *brw_stats)
         struct timeval now;
 
         /* this sampling races with updates */
-        do_gettimeofday(&now);
+        cfs_gettimeofday(&now);
         seq_printf(seq, "snapshot_time:         %lu.%lu (secs.usecs)\n",
                    now.tv_sec, now.tv_usec);
 
@@ -534,7 +535,7 @@ static void brw_stats_show(struct seq_file *seq, struct brw_stats *brw_stats)
 
         {
                 char title[24];
-                sprintf(title, "I/O time (1/%ds)", HZ);
+                sprintf(title, "I/O time (1/%ds)", CFS_HZ);
                 display_brw_stats(seq, title, "ios",
                                   &brw_stats->hist[BRW_R_IO_TIME],
                                   &brw_stats->hist[BRW_W_IO_TIME], 1);