trying to understand what is going on in fs/buffer.c . I have a fiew
questions , maby sombody has time to answer them so a kernel-newbee
can understand them....
1) a buffer is clean aslong as it is only read from
and only becomes dirty if it is written to ?
2) a clean buffer never is flushed, does that mean it
is simply dropped if a different process requests
physical memory and no more free-buffers are around ?
3) a locked buffer is locked by the process writing to it , a buffer that was
locked is always dirty ?
4) if a dirty buffer is flushed is it always freed aswell ?
5) what is the relation between clean/dirty and swaping ? can a clean buffer
be swapped out or is it simply dropped and then reloaded if accessed at
its VFS-address ?
6) I expected that a dirty buffer that is flushed would be put on the clean
buffer list until the process that was using it terminated , I could not
find where that would happen in buffer.c ?
7) are shared buffers never flushed until the last process using them exits ?
would that not mean that shared buffers are unsafer than non-shared
buffers with respect to dataloss on powerfailure ?
if someone has a better source than tlk-0.8-3.ps pleas let me know.
thx
nmg
*------------------------------------------------------------------------*
*THERE {__} Universitaet Wien *
*IS oo ) Inst. f. Materialphysik *
*LIFE O_ `_-------. Mc Guire Nicholas *
*IN (-. ,-\ *
*THE || )---< ) nicholas.mc.guire@univie.ac.at *
*NET ! ||| | | privat: der.herr@hofr.at *
* q5293324@bonsai.fernuni-hagen.de *
*------------------------------------------------------------------------*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/