Commit 40cb5bc2 authored by Nathan Scott's avatar Nathan Scott

[XFS] Find a more suitable home for the xfsstats statistics structure.

SGI Modid: 2.5.x-xfs:slinx:133971a
parent 467578b9
......@@ -33,11 +33,18 @@
#include <xfs.h>
#include <linux/proc_fs.h>
static int
xfs_read_xfsstats(char *buffer, char **start, off_t offset,
int count, int *eof, void *data)
struct xfsstats xfsstats;
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 {
char *desc;
int endpoint;
......@@ -88,11 +95,16 @@ xfs_read_xfsstats(char *buffer, char **start, off_t offset,
return len;
}
static int
xfs_read_xfsquota(char *buffer, char **start, off_t offset,
int count, int *eof, void *data)
STATIC int
xfs_read_xfsquota(
char *buffer,
char **start,
off_t offset,
int count,
int *eof,
void *data)
{
int len;
int len;
/* maximum; incore; ratio free to inuse; freelist */
len = sprintf(buffer, "%d\t%d\t%d\t%u\n",
......
......@@ -32,10 +32,6 @@
#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
* its parent directory inode and the name of the file. It does
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment