aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-08-15 15:33:42 -0400
committerMartin Brandenburg <martin@omnibond.com>2016-08-15 15:33:42 -0400
commit889d5f1baca698a4510174cdd6a6596997d0deb4 (patch)
tree2e7778620a3600f42ca815eb324caf14172e48d0
parenta0fe051592f1d31db491bb6cdcc87f512c5b6eaa (diff)
orangefs: g_orangefs_stats -> orangefs_stats for consistency
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
-rw-r--r--fs/orangefs/file.c6
-rw-r--r--fs/orangefs/orangefs-kernel.h3
-rw-r--r--fs/orangefs/orangefs-mod.c2
-rw-r--r--fs/orangefs/orangefs-sysfs.c4
4 files changed, 7 insertions, 8 deletions
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c
index 43c08b5c7168..0578b99f5471 100644
--- a/fs/orangefs/file.c
+++ b/fs/orangefs/file.c
@@ -412,7 +412,7 @@ ssize_t orangefs_inode_read(struct inode *inode,
412 size_t bufmap_size; 412 size_t bufmap_size;
413 ssize_t ret = -EINVAL; 413 ssize_t ret = -EINVAL;
414 414
415 g_orangefs_stats.reads++; 415 orangefs_stats.reads++;
416 416
417 bufmap_size = orangefs_bufmap_size_query(); 417 bufmap_size = orangefs_bufmap_size_query();
418 if (count > bufmap_size) { 418 if (count > bufmap_size) {
@@ -453,7 +453,7 @@ static ssize_t orangefs_file_read_iter(struct kiocb *iocb, struct iov_iter *iter
453 453
454 gossip_debug(GOSSIP_FILE_DEBUG, "orangefs_file_read_iter\n"); 454 gossip_debug(GOSSIP_FILE_DEBUG, "orangefs_file_read_iter\n");
455 455
456 g_orangefs_stats.reads++; 456 orangefs_stats.reads++;
457 457
458 rc = do_readv_writev(ORANGEFS_IO_READ, file, &pos, iter); 458 rc = do_readv_writev(ORANGEFS_IO_READ, file, &pos, iter);
459 iocb->ki_pos = pos; 459 iocb->ki_pos = pos;
@@ -514,7 +514,7 @@ static ssize_t orangefs_file_write_iter(struct kiocb *iocb, struct iov_iter *ite
514 } 514 }
515 515
516 iocb->ki_pos = pos; 516 iocb->ki_pos = pos;
517 g_orangefs_stats.writes++; 517 orangefs_stats.writes++;
518 518
519out: 519out:
520 520
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h
index e1b50a11bc5f..761a1d852979 100644
--- a/fs/orangefs/orangefs-kernel.h
+++ b/fs/orangefs/orangefs-kernel.h
@@ -298,7 +298,7 @@ struct orangefs_stats {
298 unsigned long writes; 298 unsigned long writes;
299}; 299};
300 300
301extern struct orangefs_stats g_orangefs_stats; 301extern struct orangefs_stats orangefs_stats;
302 302
303/* 303/*
304 * NOTE: See Documentation/filesystems/porting for information 304 * NOTE: See Documentation/filesystems/porting for information
@@ -511,7 +511,6 @@ bool orangefs_cancel_op_in_progress(struct orangefs_kernel_op_s *op);
511int orangefs_normalize_to_errno(__s32 error_code); 511int orangefs_normalize_to_errno(__s32 error_code);
512 512
513extern struct mutex request_mutex; 513extern struct mutex request_mutex;
514extern int debug;
515extern int op_timeout_secs; 514extern int op_timeout_secs;
516extern int slot_timeout_secs; 515extern int slot_timeout_secs;
517extern int dcache_timeout_msecs; 516extern int dcache_timeout_msecs;
diff --git a/fs/orangefs/orangefs-mod.c b/fs/orangefs/orangefs-mod.c
index e37853c78361..f342a2cef1e3 100644
--- a/fs/orangefs/orangefs-mod.c
+++ b/fs/orangefs/orangefs-mod.c
@@ -21,7 +21,7 @@
21 * global variables declared here 21 * global variables declared here
22 */ 22 */
23 23
24struct orangefs_stats g_orangefs_stats; 24struct orangefs_stats orangefs_stats;
25 25
26/* the size of the hash tables for ops in progress */ 26/* the size of the hash tables for ops in progress */
27int hash_table_size = 509; 27int hash_table_size = 509;
diff --git a/fs/orangefs/orangefs-sysfs.c b/fs/orangefs/orangefs-sysfs.c
index dac2908c0c27..755c37c998cf 100644
--- a/fs/orangefs/orangefs-sysfs.c
+++ b/fs/orangefs/orangefs-sysfs.c
@@ -236,13 +236,13 @@ static ssize_t sysfs_int_show(struct kobject *kobj,
236 rc = scnprintf(buf, 236 rc = scnprintf(buf,
237 PAGE_SIZE, 237 PAGE_SIZE,
238 "%lu\n", 238 "%lu\n",
239 g_orangefs_stats.reads); 239 orangefs_stats.reads);
240 goto out; 240 goto out;
241 } else if (!strcmp(attr->attr.name, "writes")) { 241 } else if (!strcmp(attr->attr.name, "writes")) {
242 rc = scnprintf(buf, 242 rc = scnprintf(buf,
243 PAGE_SIZE, 243 PAGE_SIZE,
244 "%lu\n", 244 "%lu\n",
245 g_orangefs_stats.writes); 245 orangefs_stats.writes);
246 goto out; 246 goto out;
247 } else { 247 } else {
248 goto out; 248 goto out;