Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
889d5f1b
Commit
889d5f1b
authored
Aug 15, 2016
by
Martin Brandenburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
orangefs: g_orangefs_stats -> orangefs_stats for consistency
Signed-off-by:
Martin Brandenburg
<
martin@omnibond.com
>
parent
a0fe0515
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
fs/orangefs/file.c
fs/orangefs/file.c
+3
-3
fs/orangefs/orangefs-kernel.h
fs/orangefs/orangefs-kernel.h
+1
-2
fs/orangefs/orangefs-mod.c
fs/orangefs/orangefs-mod.c
+1
-1
fs/orangefs/orangefs-sysfs.c
fs/orangefs/orangefs-sysfs.c
+2
-2
No files found.
fs/orangefs/file.c
View file @
889d5f1b
...
...
@@ -412,7 +412,7 @@ ssize_t orangefs_inode_read(struct inode *inode,
size_t
bufmap_size
;
ssize_t
ret
=
-
EINVAL
;
g_
orangefs_stats
.
reads
++
;
orangefs_stats
.
reads
++
;
bufmap_size
=
orangefs_bufmap_size_query
();
if
(
count
>
bufmap_size
)
{
...
...
@@ -453,7 +453,7 @@ static ssize_t orangefs_file_read_iter(struct kiocb *iocb, struct iov_iter *iter
gossip_debug
(
GOSSIP_FILE_DEBUG
,
"orangefs_file_read_iter
\n
"
);
g_
orangefs_stats
.
reads
++
;
orangefs_stats
.
reads
++
;
rc
=
do_readv_writev
(
ORANGEFS_IO_READ
,
file
,
&
pos
,
iter
);
iocb
->
ki_pos
=
pos
;
...
...
@@ -514,7 +514,7 @@ static ssize_t orangefs_file_write_iter(struct kiocb *iocb, struct iov_iter *ite
}
iocb
->
ki_pos
=
pos
;
g_
orangefs_stats
.
writes
++
;
orangefs_stats
.
writes
++
;
out:
...
...
fs/orangefs/orangefs-kernel.h
View file @
889d5f1b
...
...
@@ -298,7 +298,7 @@ struct orangefs_stats {
unsigned
long
writes
;
};
extern
struct
orangefs_stats
g_
orangefs_stats
;
extern
struct
orangefs_stats
orangefs_stats
;
/*
* NOTE: See Documentation/filesystems/porting for information
...
...
@@ -511,7 +511,6 @@ bool orangefs_cancel_op_in_progress(struct orangefs_kernel_op_s *op);
int
orangefs_normalize_to_errno
(
__s32
error_code
);
extern
struct
mutex
request_mutex
;
extern
int
debug
;
extern
int
op_timeout_secs
;
extern
int
slot_timeout_secs
;
extern
int
dcache_timeout_msecs
;
...
...
fs/orangefs/orangefs-mod.c
View file @
889d5f1b
...
...
@@ -21,7 +21,7 @@
* global variables declared here
*/
struct
orangefs_stats
g_
orangefs_stats
;
struct
orangefs_stats
orangefs_stats
;
/* the size of the hash tables for ops in progress */
int
hash_table_size
=
509
;
...
...
fs/orangefs/orangefs-sysfs.c
View file @
889d5f1b
...
...
@@ -236,13 +236,13 @@ static ssize_t sysfs_int_show(struct kobject *kobj,
rc
=
scnprintf
(
buf
,
PAGE_SIZE
,
"%lu
\n
"
,
g_
orangefs_stats
.
reads
);
orangefs_stats
.
reads
);
goto
out
;
}
else
if
(
!
strcmp
(
attr
->
attr
.
name
,
"writes"
))
{
rc
=
scnprintf
(
buf
,
PAGE_SIZE
,
"%lu
\n
"
,
g_
orangefs_stats
.
writes
);
orangefs_stats
.
writes
);
goto
out
;
}
else
{
goto
out
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment