* [PATCH 4/7] - remove xfs_physmem
@ 2007-07-20 4:12 Eric Sandeen
2007-07-20 7:29 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2007-07-20 4:12 UTC (permalink / raw)
To: xfs-oss
Now that nobody's using it, remove xfs_physmem & friends.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Index: linux/fs/xfs/linux-2.4/xfs_globals.c
===================================================================
--- linux.orig/fs/xfs/linux-2.4/xfs_globals.c
+++ linux/fs/xfs/linux-2.4/xfs_globals.c
@@ -21,11 +21,6 @@
#include "xfs_refcache.h"
/*
- * System memory size - used to scale certain data structures in XFS.
- */
-unsigned long xfs_physmem;
-
-/*
* Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n,
* other XFS code uses these values. Times are measured in centisecs (i.e.
* 100ths of a second).
Index: linux/fs/xfs/linux-2.4/xfs_super.c
===================================================================
--- linux.orig/fs/xfs/linux-2.4/xfs_super.c
+++ linux/fs/xfs/linux-2.4/xfs_super.c
@@ -1008,15 +1008,11 @@ STATIC int __init
init_xfs_fs( void )
{
int error;
- struct sysinfo si;
static char message[] __initdata = KERN_INFO \
XFS_VERSION_STRING " with " XFS_BUILD_OPTIONS " enabled\n";
printk(message);
- si_meminfo(&si);
- xfs_physmem = si.totalram;
-
ktrace_init(64);
error = xfs_init_inodecache();
Index: linux/fs/xfs/linux-2.6/xfs_globals.c
===================================================================
--- linux.orig/fs/xfs/linux-2.6/xfs_globals.c
+++ linux/fs/xfs/linux-2.6/xfs_globals.c
@@ -20,11 +20,6 @@
#include "xfs_sysctl.h"
/*
- * System memory size - used to scale certain data structures in XFS.
- */
-unsigned long xfs_physmem;
-
-/*
* Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n,
* other XFS code uses these values. Times are measured in centisecs (i.e.
* 100ths of a second).
Index: linux/fs/xfs/linux-2.6/xfs_globals.h
===================================================================
--- linux.orig/fs/xfs/linux-2.6/xfs_globals.h
+++ linux/fs/xfs/linux-2.6/xfs_globals.h
@@ -19,7 +19,6 @@
#define __XFS_GLOBALS_H__
extern uint64_t xfs_panic_mask; /* set to cause more panics */
-extern unsigned long xfs_physmem;
extern struct cred *sys_cred;
#endif /* __XFS_GLOBALS_H__ */
Index: linux/fs/xfs/linux-2.6/xfs_super.c
===================================================================
--- linux.orig/fs/xfs/linux-2.6/xfs_super.c
+++ linux/fs/xfs/linux-2.6/xfs_super.c
@@ -914,15 +914,11 @@ STATIC int __init
init_xfs_fs( void )
{
int error;
- struct sysinfo si;
static char message[] __initdata = KERN_INFO \
XFS_VERSION_STRING " with " XFS_BUILD_OPTIONS " enabled\n";
printk(message);
- si_meminfo(&si);
- xfs_physmem = si.totalram;
-
ktrace_init(64);
error = xfs_init_zones();
Index: linux/fs/xfs/linux-2.4/xfs_globals.h
===================================================================
--- linux.orig/fs/xfs/linux-2.4/xfs_globals.h
+++ linux/fs/xfs/linux-2.4/xfs_globals.h
@@ -19,7 +19,6 @@
#define __XFS_GLOBALS_H__
extern uint64_t xfs_panic_mask; /* set to cause more panics */
-extern unsigned long xfs_physmem;
extern struct cred *sys_cred;
#endif /* __XFS_GLOBALS_H__ */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 4/7] - remove xfs_physmem
2007-07-20 4:12 [PATCH 4/7] - remove xfs_physmem Eric Sandeen
@ 2007-07-20 7:29 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2007-07-20 7:29 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs-oss
On Thu, Jul 19, 2007 at 11:12:19PM -0500, Eric Sandeen wrote:
> Now that nobody's using it, remove xfs_physmem & friends.
Nice.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-20 7:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-20 4:12 [PATCH 4/7] - remove xfs_physmem Eric Sandeen
2007-07-20 7:29 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox