From: Zoltan Menyhart <Zoltan.Menyhart@bull.net>
To: linux-kernel@vger.kernel.org
Subject: write_out_data in JBD
Date: Thu, 18 May 2006 10:28:32 +0200 [thread overview]
Message-ID: <446C3030.2040303@bull.net> (raw)
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
next reply other threads:[~2006-05-18 8:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-18 8:28 Zoltan Menyhart [this message]
2006-05-19 20:23 ` write_out_data in JBD Jan Kara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=446C3030.2040303@bull.net \
--to=zoltan.menyhart@bull.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox