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
40cb5bc2
Commit
40cb5bc2
authored
Dec 04, 2002
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Find a more suitable home for the xfsstats statistics structure.
SGI Modid: 2.5.x-xfs:slinx:133971a
parent
467578b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
12 deletions
+20
-12
fs/xfs/linux/xfs_stats.c
fs/xfs/linux/xfs_stats.c
+20
-8
fs/xfs/xfs_utils.c
fs/xfs/xfs_utils.c
+0
-4
No files found.
fs/xfs/linux/xfs_stats.c
View file @
40cb5bc2
...
@@ -33,11 +33,18 @@
...
@@ -33,11 +33,18 @@
#include <xfs.h>
#include <xfs.h>
#include <linux/proc_fs.h>
#include <linux/proc_fs.h>
static
int
struct
xfsstats
xfsstats
;
xfs_read_xfsstats
(
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
count
,
int
*
eof
,
void
*
data
)
STATIC
int
xfs_read_xfsstats
(
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
count
,
int
*
eof
,
void
*
data
)
{
{
int
i
,
j
,
len
;
int
i
,
j
,
len
;
static
struct
xstats_entry
{
static
struct
xstats_entry
{
char
*
desc
;
char
*
desc
;
int
endpoint
;
int
endpoint
;
...
@@ -88,11 +95,16 @@ xfs_read_xfsstats(char *buffer, char **start, off_t offset,
...
@@ -88,11 +95,16 @@ xfs_read_xfsstats(char *buffer, char **start, off_t offset,
return
len
;
return
len
;
}
}
static
int
STATIC
int
xfs_read_xfsquota
(
char
*
buffer
,
char
**
start
,
off_t
offset
,
xfs_read_xfsquota
(
int
count
,
int
*
eof
,
void
*
data
)
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
count
,
int
*
eof
,
void
*
data
)
{
{
int
len
;
int
len
;
/* maximum; incore; ratio free to inuse; freelist */
/* maximum; incore; ratio free to inuse; freelist */
len
=
sprintf
(
buffer
,
"%d
\t
%d
\t
%d
\t
%u
\n
"
,
len
=
sprintf
(
buffer
,
"%d
\t
%d
\t
%d
\t
%u
\n
"
,
...
...
fs/xfs/xfs_utils.c
View file @
40cb5bc2
...
@@ -32,10 +32,6 @@
...
@@ -32,10 +32,6 @@
#include <xfs.h>
#include <xfs.h>
#ifdef CONFIG_PROC_FS
struct
xfsstats
xfsstats
;
#endif
/*
/*
* xfs_get_dir_entry is used to get a reference to an inode given
* xfs_get_dir_entry is used to get a reference to an inode given
* its parent directory inode and the name of the file. It does
* its parent directory inode and the name of the file. It does
...
...
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