[lc-checkins] CVS: linux/kernel sysctl.c,1.2,1.3
Status: Beta
Brought to you by:
nitin_sf
From: Rodrigo S. de C. <rc...@us...> - 2001-12-13 19:13:00
|
Update of /cvsroot/linuxcompressed/linux/kernel In directory usw-pr-cvs1:/tmp/cvs-serv23494/kernel Modified Files: sysctl.c Log Message: First batch of changes to remove #ifdefs and make code cleaner. It follows Documentation/SubmittingPatches document. Index: sysctl.c =================================================================== RCS file: /cvsroot/linuxcompressed/linux/kernel/sysctl.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** sysctl.c 2001/12/12 20:45:46 1.2 --- sysctl.c 2001/12/13 19:12:58 1.3 *************** *** 50,57 **** extern int core_uses_pid; extern int cad_pid; - #ifdef CONFIG_COMP_CACHE - extern int tmp_comp_cache_size, tmp_comp_cache_size_min, tmp_comp_cache_size_max; - extern int current_algorithm, algorithm_min, algorithm_max; - #endif /* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */ --- 50,53 ---- *************** *** 114,118 **** static ctl_table vm_table[]; #ifdef CONFIG_COMP_CACHE ! static ctl_table comp_cache_table[]; #endif #ifdef CONFIG_NET --- 110,114 ---- static ctl_table vm_table[]; #ifdef CONFIG_COMP_CACHE ! extern ctl_table comp_cache_table[]; #endif #ifdef CONFIG_NET *************** *** 287,302 **** {0} }; - - #ifdef CONFIG_COMP_CACHE - static ctl_table comp_cache_table[] = { - {CC_SIZE, "size", &tmp_comp_cache_size, sizeof(int), 0644, NULL, - &proc_dointvec_minmax, &sysctl_intvec, NULL, &tmp_comp_cache_size_min, - &tmp_comp_cache_size_max}, - {CC_ALGORITHM, "algorithm", ¤t_algorithm, sizeof(int), 0644, NULL, - &proc_dointvec_minmax, &sysctl_intvec, NULL, &algorithm_min, - &algorithm_max}, - {0} - }; - #endif static ctl_table proc_table[] = { --- 283,286 ---- |