Update of /cvsroot/linuxcompressed/linux/mm/comp_cache
In directory usw-pr-cvs1:/tmp/cvs-serv2127/mm/comp_cache
Modified Files:
free.c vswap.c
Log Message:
- In 2.4.10 the MAX_SWAPFILES was changed, what caused some problems for our
code in architectures like UML, which handles swap entry addresses
differently than in i386. That way, we cannot keep using MAX_SWAPFILES for
our swap type unless we decrease this variable. In this case, we decreased
the variable to 31 and so we can use 31 as COMP_CACHE_SWP_TYPE without
worrying about arch-dependent configuration. Nevertheless, we are limited to
31 swap files, not 32 as in vanilla.
Index: free.c
===================================================================
RCS file: /cvsroot/linuxcompressed/linux/mm/comp_cache/free.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** free.c 2001/09/29 20:30:14 1.6
--- free.c 2001/10/08 14:56:35 1.7
***************
*** 2,6 ****
* linux/mm/comp_cache/free.c
*
! * Time-stamp: <2001-09-29 16:09:04 rcastro>
*
* Linux Virtual Memory Compressed Cache
--- 2,6 ----
* linux/mm/comp_cache/free.c
*
! * Time-stamp: <2001-10-06 17:07:23 rcastro>
*
* Linux Virtual Memory Compressed Cache
Index: vswap.c
===================================================================
RCS file: /cvsroot/linuxcompressed/linux/mm/comp_cache/vswap.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** vswap.c 2001/10/01 22:43:59 1.7
--- vswap.c 2001/10/08 14:56:35 1.8
***************
*** 2,6 ****
* linux/mm/comp_cache/vswap.c
*
! * Time-stamp: <2001-10-01 18:27:32 rcastro>
*
* Linux Virtual Memory Compressed Cache
--- 2,6 ----
* linux/mm/comp_cache/vswap.c
*
! * Time-stamp: <2001-10-08 11:31:54 rcastro>
*
* Linux Virtual Memory Compressed Cache
***************
*** 385,389 ****
tmp_pte_list->next = vswap_address[offset]->pte_list;
tmp_pte_list->ptep = ptep;
!
vswap_address[offset]->pte_list = tmp_pte_list;
}
--- 385,389 ----
tmp_pte_list->next = vswap_address[offset]->pte_list;
tmp_pte_list->ptep = ptep;
!
vswap_address[offset]->pte_list = tmp_pte_list;
}
|