diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-08-15 15:33:42 -0400 |
---|---|---|
committer | Martin Brandenburg <martin@omnibond.com> | 2016-08-15 15:33:42 -0400 |
commit | 889d5f1baca698a4510174cdd6a6596997d0deb4 (patch) | |
tree | 2e7778620a3600f42ca815eb324caf14172e48d0 | |
parent | a0fe051592f1d31db491bb6cdcc87f512c5b6eaa (diff) |
orangefs: g_orangefs_stats -> orangefs_stats for consistency
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
-rw-r--r-- | fs/orangefs/file.c | 6 | ||||
-rw-r--r-- | fs/orangefs/orangefs-kernel.h | 3 | ||||
-rw-r--r-- | fs/orangefs/orangefs-mod.c | 2 | ||||
-rw-r--r-- | fs/orangefs/orangefs-sysfs.c | 4 |
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 | ||
519 | out: | 519 | out: |
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 | ||
301 | extern struct orangefs_stats g_orangefs_stats; | 301 | extern 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); | |||
511 | int orangefs_normalize_to_errno(__s32 error_code); | 511 | int orangefs_normalize_to_errno(__s32 error_code); |
512 | 512 | ||
513 | extern struct mutex request_mutex; | 513 | extern struct mutex request_mutex; |
514 | extern int debug; | ||
515 | extern int op_timeout_secs; | 514 | extern int op_timeout_secs; |
516 | extern int slot_timeout_secs; | 515 | extern int slot_timeout_secs; |
517 | extern int dcache_timeout_msecs; | 516 | extern 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 | ||
24 | struct orangefs_stats g_orangefs_stats; | 24 | struct 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 */ |
27 | int hash_table_size = 509; | 27 | int 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; |