linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* A question on block_prepare_write()
@ 2010-10-23 13:44 Namhyung Kim
  2010-10-23 17:40 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Namhyung Kim @ 2010-10-23 13:44 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: LKML

Hello,

I see block_prepare_write() has local variable wait[2] to keep track of
buffer_heads which are not up-to-date. But I'm wondering how it could be
guaranteed there will be no more than 2 such buffer_heads? Is there any
restriction on the usage of the function? Using MAX_BUF_PER_PAGE instead
of the magic number 2 is just useless? I couldn't find any comments or
documentation on this.

Any of your comments would be greatly appreciated. TIA. :-)

-- 
Regards,
Namhyung Kim

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

end of thread, other threads:[~2010-10-23 18:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-23 13:44 A question on block_prepare_write() Namhyung Kim
2010-10-23 17:40 ` Andrew Morton
2010-10-23 18:00   ` Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).