Skip to contentSkip to conversation

- remove xfs_physmem

PATCH In review Eric Sandeen 2 participants 2 messages Jul 20, 2007 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 4/7 - remove xfs_physmem

Now that nobody's using it, remove xfs_physmem & friends.

fs/xfs/linux-2.4/xfs_globals.c +0 -5
Index: 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).
fs/xfs/linux-2.4/xfs_super.c +0 -4
Index: 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();
fs/xfs/linux-2.6/xfs_globals.c +0 -5
Index: 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).
fs/xfs/linux-2.6/xfs_globals.h +0 -1
Index: 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__ */
fs/xfs/linux-2.6/xfs_super.c +0 -4
Index: 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();
fs/xfs/linux-2.4/xfs_globals.h +0 -1
Index: 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__ */
#1 lore raw
Quoted 1 line · Eric Sandeen

Now that nobody's using it, remove xfs_physmem & friends.

Nice.