public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* write_out_data in JBD
@ 2006-05-18  8:28 Zoltan Menyhart
  2006-05-19 20:23 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: Zoltan Menyhart @ 2006-05-18  8:28 UTC (permalink / raw)
  To: linux-kernel

Stephen,

Here is a code fragment starting at "write_out_data:" in
"journal_commit_transaction()":

Let's assume that there is a single "jh" on the list.

write_out_data:
   while (commit_transaction->t_sync_datalist) {

       jh = commit_transaction->t_sync_datalist;
       commit_transaction->t_sync_datalist = jh->b_tnext;

       // "commit_transaction->t_sync_datalist" happens always
       // to point at our single "jh"

       bh = jh2bh(jh);

       // Assume not locked
       // Assume dirty

       if (buffer_dirty(bh)) {
           get_bh(bh);
           wbuf[bufs++] = bh;
           if (bufs == journal->j_wbufsize) {
               ...
               goto write_out_data;
           }
       } else ...
   }

I think our single "jh" will be put on "wbuf[]" repeatedly
("journal->j_wbufsize" times).

Regards,

Zoltan Menyhart


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-19 20:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-18  8:28 write_out_data in JBD Zoltan Menyhart
2006-05-19 20:23 ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox