[lc-checkins] CVS: linux/mm/comp_cache swapout.c,1.39,1.40
Status: Beta
Brought to you by:
nitin_sf
|
From: Rodrigo S. de C. <rc...@us...> - 2002-05-09 12:31:04
|
Update of /cvsroot/linuxcompressed/linux/mm/comp_cache
In directory usw-pr-cvs1:/tmp/cvs-serv26703/mm/comp_cache
Modified Files:
swapout.c
Log Message:
- Removed pending comp_cache_skip* in fs/buffer.c. The cvs code now compiles.
- Hopefully fixed a bug hit by Paolo Ciarrocchi which would hang his
computer when running mmap001.
Index: swapout.c
===================================================================
RCS file: /cvsroot/linuxcompressed/linux/mm/comp_cache/swapout.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -r1.39 -r1.40
*** swapout.c 8 May 2002 20:24:40 -0000 1.39
--- swapout.c 9 May 2002 12:31:01 -0000 1.40
***************
*** 2,6 ****
* /mm/comp_cache/swapout.c
*
! * Time-stamp: <2002-05-08 16:01:38 rcastro>
*
* Linux Virtual Memory Compressed Cache
--- 2,6 ----
* /mm/comp_cache/swapout.c
*
! * Time-stamp: <2002-05-09 09:20:50 rcastro>
*
* Linux Virtual Memory Compressed Cache
***************
*** 60,67 ****
--- 60,71 ----
}
+ /* its fragment was added to locked_pages list below,
+ * right before being returned to the caller, so let's
+ * remove it now from any mapping->*_pages list */
list_del(&swp_buffer->page->list);
if (swp_buffer->page->buffers) {
if (!try_to_free_buffers(swp_buffer->page, gfp_mask)) {
+ list_del(swp_buffer_lh);
list_add_tail(swp_buffer_lh, &swp_used_buffer_head);
continue;
|