public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kill probe_* sysctl leftovers
@ 2007-09-02 20:17 Christoph Hellwig
  2007-09-29  9:40 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2007-09-02 20:17 UTC (permalink / raw)
  To: xfs

After my recent changes the probe_* sysctls are unused because we do
a proper request_module now if we actually know that we need the quota
or dmapi module.  Kill the leftovers that have no function anymore.


Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: linux-2.6-xfs/fs/xfs/linux-2.6/xfs_globals.c
===================================================================
--- linux-2.6-xfs.orig/fs/xfs/linux-2.6/xfs_globals.c	2007-09-02 21:48:26.000000000 +0200
+++ linux-2.6-xfs/fs/xfs/linux-2.6/xfs_globals.c	2007-09-02 22:02:29.000000000 +0200
@@ -32,9 +32,6 @@ xfs_param_t xfs_params = {
 	.panic_mask	= {	0,		0,		255	},
 	.error_level	= {	0,		3,		11	},
 	.syncd_timer	= {	1*100,		30*100,		7200*100},
-	.probe_dmapi	= {	0,		0,		1	},
-	.probe_ioops	= {	0,		0,		1	},
-	.probe_quota	= {	0,		1,		1	},
 	.stats_clear	= {	0,		0,		1	},
 	.inherit_sync	= {	0,		1,		1	},
 	.inherit_nodump	= {	0,		1,		1	},
Index: linux-2.6-xfs/fs/xfs/linux-2.6/xfs_linux.h
===================================================================
--- linux-2.6-xfs.orig/fs/xfs/linux-2.6/xfs_linux.h	2007-09-02 21:48:26.000000000 +0200
+++ linux-2.6-xfs/fs/xfs/linux-2.6/xfs_linux.h	2007-09-02 22:02:29.000000000 +0200
@@ -119,9 +119,6 @@
 #define xfs_panic_mask		xfs_params.panic_mask.val
 #define xfs_error_level		xfs_params.error_level.val
 #define xfs_syncd_centisecs	xfs_params.syncd_timer.val
-#define xfs_probe_dmapi		xfs_params.probe_dmapi.val
-#define xfs_probe_ioops		xfs_params.probe_ioops.val
-#define xfs_probe_quota		xfs_params.probe_quota.val
 #define xfs_stats_clear		xfs_params.stats_clear.val
 #define xfs_inherit_sync	xfs_params.inherit_sync.val
 #define xfs_inherit_nodump	xfs_params.inherit_nodump.val
Index: linux-2.6-xfs/fs/xfs/linux-2.6/xfs_sysctl.c
===================================================================
--- linux-2.6-xfs.orig/fs/xfs/linux-2.6/xfs_sysctl.c	2007-09-02 21:48:26.000000000 +0200
+++ linux-2.6-xfs/fs/xfs/linux-2.6/xfs_sysctl.c	2007-09-02 22:02:29.000000000 +0200
@@ -123,39 +123,6 @@ static ctl_table xfs_table[] = {
 		.extra2		= &xfs_params.syncd_timer.max
 	},
 	{
-		.ctl_name	= XFS_PROBE_DMAPI,
-		.procname	= "probe_dmapi",
-		.data		= &xfs_params.probe_dmapi.val,
-		.maxlen		= sizeof(int),
-		.mode		= 0644,
-		.proc_handler	= &proc_dointvec_minmax,
-		.strategy	= &sysctl_intvec,
-		.extra1		= &xfs_params.probe_dmapi.min,
-		.extra2		= &xfs_params.probe_dmapi.max
-	},
-	{
-		.ctl_name	= XFS_PROBE_IOOPS,
-		.procname	= "probe_ioops",
-		.data		= &xfs_params.probe_ioops.val,
-		.maxlen		= sizeof(int),
-		.mode		= 0644,
-		.proc_handler	= &proc_dointvec_minmax,
-		.strategy	= &sysctl_intvec,
-		.extra1		= &xfs_params.probe_ioops.min,
-		.extra2		= &xfs_params.probe_ioops.max
-	},
-	{
-		.ctl_name	= XFS_PROBE_QUOTA,
-		.procname	= "probe_quota",
-		.data		= &xfs_params.probe_quota.val,
-		.maxlen		= sizeof(int),
-		.mode		= 0644,
-		.proc_handler	= &proc_dointvec_minmax,
-		.strategy	= &sysctl_intvec,
-		.extra1		= &xfs_params.probe_quota.min,
-		.extra2		= &xfs_params.probe_quota.max
-	},
-	{
 		.ctl_name	= XFS_INHERIT_SYNC,
 		.procname	= "inherit_sync",
 		.data		= &xfs_params.inherit_sync.val,
Index: linux-2.6-xfs/fs/xfs/linux-2.6/xfs_sysctl.h
===================================================================
--- linux-2.6-xfs.orig/fs/xfs/linux-2.6/xfs_sysctl.h	2007-09-02 21:48:26.000000000 +0200
+++ linux-2.6-xfs/fs/xfs/linux-2.6/xfs_sysctl.h	2007-09-02 22:02:29.000000000 +0200
@@ -39,9 +39,6 @@ typedef struct xfs_param {
 	xfs_sysctl_val_t error_level;	/* Degree of reporting for problems  */
 	xfs_sysctl_val_t syncd_timer;	/* Interval between xfssyncd wakeups */
 	xfs_sysctl_val_t stats_clear;	/* Reset all XFS statistics to zero. */
-	xfs_sysctl_val_t probe_dmapi;	/* probe for DMAPI module on mount. */
-	xfs_sysctl_val_t probe_ioops;	/* probe for an IO module on mount. */
-	xfs_sysctl_val_t probe_quota;	/* probe for quota module on mount. */
 	xfs_sysctl_val_t inherit_sync;	/* Inherit the "sync" inode flag. */
 	xfs_sysctl_val_t inherit_nodump;/* Inherit the "nodump" inode flag. */
 	xfs_sysctl_val_t inherit_noatim;/* Inherit the "noatime" inode flag. */
@@ -77,9 +74,9 @@ enum {
 	XFS_PANIC_MASK = 6,
 	XFS_ERRLEVEL = 7,
 	XFS_SYNCD_TIMER = 8,
-	XFS_PROBE_DMAPI = 9,
-	XFS_PROBE_IOOPS = 10,
-	XFS_PROBE_QUOTA = 11,
+	/* XFS_PROBE_DMAPI = 9, */
+	/* XFS_PROBE_IOOPS = 10, */
+	/* XFS_PROBE_QUOTA = 11, */
 	XFS_STATS_CLEAR = 12,
 	XFS_INHERIT_SYNC = 13,
 	XFS_INHERIT_NODUMP = 14,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] kill probe_* sysctl leftovers
  2007-09-02 20:17 [PATCH] kill probe_* sysctl leftovers Christoph Hellwig
@ 2007-09-29  9:40 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2007-09-29  9:40 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: xfs

On Sun, Sep 02, 2007 at 10:17:27PM +0200, Christoph Hellwig wrote:
> After my recent changes the probe_* sysctls are unused because we do
> a proper request_module now if we actually know that we need the quota
> or dmapi module.  Kill the leftovers that have no function anymore.

ping.

> Signed-off-by: Christoph Hellwig <hch@lst.de>
> 
> Index: linux-2.6-xfs/fs/xfs/linux-2.6/xfs_globals.c
> ===================================================================
> --- linux-2.6-xfs.orig/fs/xfs/linux-2.6/xfs_globals.c	2007-09-02 21:48:26.000000000 +0200
> +++ linux-2.6-xfs/fs/xfs/linux-2.6/xfs_globals.c	2007-09-02 22:02:29.000000000 +0200
> @@ -32,9 +32,6 @@ xfs_param_t xfs_params = {
>  	.panic_mask	= {	0,		0,		255	},
>  	.error_level	= {	0,		3,		11	},
>  	.syncd_timer	= {	1*100,		30*100,		7200*100},
> -	.probe_dmapi	= {	0,		0,		1	},
> -	.probe_ioops	= {	0,		0,		1	},
> -	.probe_quota	= {	0,		1,		1	},
>  	.stats_clear	= {	0,		0,		1	},
>  	.inherit_sync	= {	0,		1,		1	},
>  	.inherit_nodump	= {	0,		1,		1	},
> Index: linux-2.6-xfs/fs/xfs/linux-2.6/xfs_linux.h
> ===================================================================
> --- linux-2.6-xfs.orig/fs/xfs/linux-2.6/xfs_linux.h	2007-09-02 21:48:26.000000000 +0200
> +++ linux-2.6-xfs/fs/xfs/linux-2.6/xfs_linux.h	2007-09-02 22:02:29.000000000 +0200
> @@ -119,9 +119,6 @@
>  #define xfs_panic_mask		xfs_params.panic_mask.val
>  #define xfs_error_level		xfs_params.error_level.val
>  #define xfs_syncd_centisecs	xfs_params.syncd_timer.val
> -#define xfs_probe_dmapi		xfs_params.probe_dmapi.val
> -#define xfs_probe_ioops		xfs_params.probe_ioops.val
> -#define xfs_probe_quota		xfs_params.probe_quota.val
>  #define xfs_stats_clear		xfs_params.stats_clear.val
>  #define xfs_inherit_sync	xfs_params.inherit_sync.val
>  #define xfs_inherit_nodump	xfs_params.inherit_nodump.val
> Index: linux-2.6-xfs/fs/xfs/linux-2.6/xfs_sysctl.c
> ===================================================================
> --- linux-2.6-xfs.orig/fs/xfs/linux-2.6/xfs_sysctl.c	2007-09-02 21:48:26.000000000 +0200
> +++ linux-2.6-xfs/fs/xfs/linux-2.6/xfs_sysctl.c	2007-09-02 22:02:29.000000000 +0200
> @@ -123,39 +123,6 @@ static ctl_table xfs_table[] = {
>  		.extra2		= &xfs_params.syncd_timer.max
>  	},
>  	{
> -		.ctl_name	= XFS_PROBE_DMAPI,
> -		.procname	= "probe_dmapi",
> -		.data		= &xfs_params.probe_dmapi.val,
> -		.maxlen		= sizeof(int),
> -		.mode		= 0644,
> -		.proc_handler	= &proc_dointvec_minmax,
> -		.strategy	= &sysctl_intvec,
> -		.extra1		= &xfs_params.probe_dmapi.min,
> -		.extra2		= &xfs_params.probe_dmapi.max
> -	},
> -	{
> -		.ctl_name	= XFS_PROBE_IOOPS,
> -		.procname	= "probe_ioops",
> -		.data		= &xfs_params.probe_ioops.val,
> -		.maxlen		= sizeof(int),
> -		.mode		= 0644,
> -		.proc_handler	= &proc_dointvec_minmax,
> -		.strategy	= &sysctl_intvec,
> -		.extra1		= &xfs_params.probe_ioops.min,
> -		.extra2		= &xfs_params.probe_ioops.max
> -	},
> -	{
> -		.ctl_name	= XFS_PROBE_QUOTA,
> -		.procname	= "probe_quota",
> -		.data		= &xfs_params.probe_quota.val,
> -		.maxlen		= sizeof(int),
> -		.mode		= 0644,
> -		.proc_handler	= &proc_dointvec_minmax,
> -		.strategy	= &sysctl_intvec,
> -		.extra1		= &xfs_params.probe_quota.min,
> -		.extra2		= &xfs_params.probe_quota.max
> -	},
> -	{
>  		.ctl_name	= XFS_INHERIT_SYNC,
>  		.procname	= "inherit_sync",
>  		.data		= &xfs_params.inherit_sync.val,
> Index: linux-2.6-xfs/fs/xfs/linux-2.6/xfs_sysctl.h
> ===================================================================
> --- linux-2.6-xfs.orig/fs/xfs/linux-2.6/xfs_sysctl.h	2007-09-02 21:48:26.000000000 +0200
> +++ linux-2.6-xfs/fs/xfs/linux-2.6/xfs_sysctl.h	2007-09-02 22:02:29.000000000 +0200
> @@ -39,9 +39,6 @@ typedef struct xfs_param {
>  	xfs_sysctl_val_t error_level;	/* Degree of reporting for problems  */
>  	xfs_sysctl_val_t syncd_timer;	/* Interval between xfssyncd wakeups */
>  	xfs_sysctl_val_t stats_clear;	/* Reset all XFS statistics to zero. */
> -	xfs_sysctl_val_t probe_dmapi;	/* probe for DMAPI module on mount. */
> -	xfs_sysctl_val_t probe_ioops;	/* probe for an IO module on mount. */
> -	xfs_sysctl_val_t probe_quota;	/* probe for quota module on mount. */
>  	xfs_sysctl_val_t inherit_sync;	/* Inherit the "sync" inode flag. */
>  	xfs_sysctl_val_t inherit_nodump;/* Inherit the "nodump" inode flag. */
>  	xfs_sysctl_val_t inherit_noatim;/* Inherit the "noatime" inode flag. */
> @@ -77,9 +74,9 @@ enum {
>  	XFS_PANIC_MASK = 6,
>  	XFS_ERRLEVEL = 7,
>  	XFS_SYNCD_TIMER = 8,
> -	XFS_PROBE_DMAPI = 9,
> -	XFS_PROBE_IOOPS = 10,
> -	XFS_PROBE_QUOTA = 11,
> +	/* XFS_PROBE_DMAPI = 9, */
> +	/* XFS_PROBE_IOOPS = 10, */
> +	/* XFS_PROBE_QUOTA = 11, */
>  	XFS_STATS_CLEAR = 12,
>  	XFS_INHERIT_SYNC = 13,
>  	XFS_INHERIT_NODUMP = 14,
> 
> 
---end quoted text---

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-29 10:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-02 20:17 [PATCH] kill probe_* sysctl leftovers Christoph Hellwig
2007-09-29  9:40 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox