Re: [lc-devel] Chunk list issues
Status: Beta
Brought to you by:
nitin_sf
From: Nitin G. <nit...@gm...> - 2006-06-21 10:39:57
|
Hi Mauricio, Mauricio Lin wrote: > Regarding the master chunk list (chunks) in the struct chunk, does it > store the chunks of one page cache or several page caches? Will be > there one master chunk list per page cache radix tree? 'master chunk list' is list of all chunks -- these chunks may be part of a file, part of anon page, or free chunks. Its there to easily merge physically adjacent chunks when a chunk is freed. > > I also wonder where the chunk list header will be stored. For instance > the list header of task_struct is stored in the tasks field of > init_task, so when an insertion happens in the list of task_struct, > something like that is used: > > list_add_tail(&p->tasks, &init_task.tasks); > > where the first argument is the element to be inserted and the second > argument corresponds the list header of task_struct. > Thus where the list header of chunks will be stored? Any idea? > A compressed page is stored in many chunks. chunk_head->chunk_list is made to point to first of these chunks and these 'related' chunks are linked together using chunk->next Cheers, Nitin Gupta |