Просмотр исходного кода

[XFS] Remove xfs_physmem

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

SGI-PV: 968563
SGI-Modid: xfs-linux-melb:xfs-kern:29325a

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Eric Sandeen 17 лет назад
Родитель
Сommit
6385f4d557
3 измененных файлов с 0 добавлено и 10 удалено
  1. 0 5
      fs/xfs/linux-2.6/xfs_globals.c
  2. 0 1
      fs/xfs/linux-2.6/xfs_globals.h
  3. 0 4
      fs/xfs/linux-2.6/xfs_super.c

+ 0 - 5
fs/xfs/linux-2.6/xfs_globals.c

@@ -19,11 +19,6 @@
 #include "xfs_cred.h"
 #include "xfs_cred.h"
 #include "xfs_sysctl.h"
 #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,
  * 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.
  * other XFS code uses these values.  Times are measured in centisecs (i.e.

+ 0 - 1
fs/xfs/linux-2.6/xfs_globals.h

@@ -19,7 +19,6 @@
 #define __XFS_GLOBALS_H__
 #define __XFS_GLOBALS_H__
 
 
 extern uint64_t	xfs_panic_mask;		/* set to cause more panics */
 extern uint64_t	xfs_panic_mask;		/* set to cause more panics */
-extern unsigned long xfs_physmem;
 extern struct cred *sys_cred;
 extern struct cred *sys_cred;
 
 
 #endif	/* __XFS_GLOBALS_H__ */
 #endif	/* __XFS_GLOBALS_H__ */

+ 0 - 4
fs/xfs/linux-2.6/xfs_super.c

@@ -907,15 +907,11 @@ STATIC int __init
 init_xfs_fs( void )
 init_xfs_fs( void )
 {
 {
 	int			error;
 	int			error;
-	struct sysinfo		si;
 	static char		message[] __initdata = KERN_INFO \
 	static char		message[] __initdata = KERN_INFO \
 		XFS_VERSION_STRING " with " XFS_BUILD_OPTIONS " enabled\n";
 		XFS_VERSION_STRING " with " XFS_BUILD_OPTIONS " enabled\n";
 
 
 	printk(message);
 	printk(message);
 
 
-	si_meminfo(&si);
-	xfs_physmem = si.totalram;
-
 	ktrace_init(64);
 	ktrace_init(64);
 
 
 	error = xfs_init_zones();
 	error = xfs_init_zones();