[lc-checkins] CVS: linux/mm/comp_cache main.c,1.37,1.38
Status: Beta
Brought to you by:
nitin_sf
|
From: Rodrigo S. de C. <rc...@us...> - 2002-05-23 13:52:47
|
Update of /cvsroot/linuxcompressed/linux/mm/comp_cache
In directory usw-pr-cvs1:/tmp/cvs-serv28265/mm/comp_cache
Modified Files:
main.c
Log Message:
- our kernel parameter "compsize=" will accept as input the same values as
mem=, so you can enter the number of megabytes, kilobytes or even gigabytes
(although a compressed cache cannot have that size) without having to
convert this number into the number of memory pages. For example,
compsize=16M or compsize=1024K will work now.
Index: main.c
===================================================================
RCS file: /cvsroot/linuxcompressed/linux/mm/comp_cache/main.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** main.c 21 May 2002 18:49:06 -0000 1.37
--- main.c 23 May 2002 13:52:44 -0000 1.38
***************
*** 2,6 ****
* linux/mm/comp_cache/main.c
*
! * Time-stamp: <2002-05-21 12:40:53 rcastro>
*
* Linux Virtual Memory Compressed Cache
--- 2,6 ----
* linux/mm/comp_cache/main.c
*
! * Time-stamp: <2002-05-23 10:38:17 rcastro>
*
* Linux Virtual Memory Compressed Cache
***************
*** 225,230 ****
{
char * endp;
! init_num_comp_pages = simple_strtoul(str, &endp, 0);
return 1;
}
--- 225,233 ----
{
char * endp;
+ unsigned long long comp_cache_size; /* size in bytes */
! comp_cache_size = memparse(str, &endp);
! init_num_comp_pages = comp_cache_size >> PAGE_SHIFT;
!
return 1;
}
|