patch-2.1.13 linux/include/linux/swapctl.h
Next file: linux/include/linux/wait.h
Previous file: linux/include/linux/swap.h
Back to the patch index
Back to the overall index
- Lines: 79
- Date:
Sat Nov 23 12:29:04 1996
- Orig file:
v2.1.12/linux/include/linux/swapctl.h
- Orig date:
Mon Sep 30 11:19:43 1996
diff -u --recursive --new-file v2.1.12/linux/include/linux/swapctl.h linux/include/linux/swapctl.h
@@ -11,21 +11,21 @@
typedef struct swap_control_v5
{
- int sc_max_page_age;
- int sc_page_advance;
- int sc_page_decline;
- int sc_page_initial_age;
- int sc_max_buff_age;
- int sc_buff_advance;
- int sc_buff_decline;
- int sc_buff_initial_age;
- int sc_age_cluster_fract;
- int sc_age_cluster_min;
- int sc_pageout_weight;
- int sc_bufferout_weight;
- int sc_buffer_grace;
- int sc_nr_buffs_to_free;
- int sc_nr_pages_to_free;
+ unsigned int sc_max_page_age;
+ unsigned int sc_page_advance;
+ unsigned int sc_page_decline;
+ unsigned int sc_page_initial_age;
+ unsigned int sc_max_buff_age;
+ unsigned int sc_buff_advance;
+ unsigned int sc_buff_decline;
+ unsigned int sc_buff_initial_age;
+ unsigned int sc_age_cluster_fract;
+ unsigned int sc_age_cluster_min;
+ unsigned int sc_pageout_weight;
+ unsigned int sc_bufferout_weight;
+ unsigned int sc_buffer_grace;
+ unsigned int sc_nr_buffs_to_free;
+ unsigned int sc_nr_pages_to_free;
enum RCL_POLICY sc_policy;
} swap_control_v5;
typedef struct swap_control_v5 swap_control_t;
@@ -33,22 +33,22 @@
typedef struct kswapd_control_v1
{
- int maxpages;
- int pages_buff;
- int pages_shm;
- int pages_mmap;
- int pages_swap;
+ unsigned int maxpages;
+ unsigned int pages_buff;
+ unsigned int pages_shm;
+ unsigned int pages_mmap;
+ unsigned int pages_swap;
} kswapd_control_v1;
typedef kswapd_control_v1 kswapd_control_t;
extern kswapd_control_t kswapd_ctl;
typedef struct swapstat_v1
{
- int wakeups;
- int pages_reclaimed;
- int pages_shm;
- int pages_mmap;
- int pages_swap;
+ unsigned int wakeups;
+ unsigned int pages_reclaimed;
+ unsigned int pages_shm;
+ unsigned int pages_mmap;
+ unsigned int pages_swap;
} swapstat_v1;
typedef swapstat_v1 swapstat_t;
extern swapstat_t swapstats;
@@ -94,7 +94,7 @@
* scan the resource list. */
static inline int AGE_CLUSTER_SIZE(int resources)
{
- int n = (resources * AGE_CLUSTER_FRACT) >> 10;
+ unsigned int n = (resources * AGE_CLUSTER_FRACT) >> 10;
if (n < AGE_CLUSTER_MIN)
return AGE_CLUSTER_MIN;
else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov