linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is nobh code still useful?
@ 2009-09-17 13:56 Jan Kara
  2009-09-17 15:11 ` Boaz Harrosh
  2009-09-18  4:21 ` Badari Pulavarty
  0 siblings, 2 replies; 8+ messages in thread
From: Jan Kara @ 2009-09-17 13:56 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: LKML, pbadari, Andrew Morton

  Hi,

  during my page_mkwrite() work, I've looked at who uses nobh_ versions of
various functions in fs/buffer.c. It seems only ext2 and jfs use them. ext3
uses them only from writepage() (which means we needn't attach buffers to a
page when it was written via mmap in writeback mode) and ext4 tries to use
them but in fact it's nop because it always attaches buffers to the page
earlier. So it's not really widely used, there's quite some code to support
it (including one page flag), and it also slightly complicates my
page_mkwrite() fixes.
  So I wanted to ask does somebody actually remember what it is good for?
Buffer heads obviously consume some memory so was that the reason? OTOH we
have to map the page whenever we write to it or send it to disk via
writepage().

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

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

end of thread, other threads:[~2009-09-23 14:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-17 13:56 Is nobh code still useful? Jan Kara
2009-09-17 15:11 ` Boaz Harrosh
2009-09-17 15:25   ` Jan Kara
2009-09-18  4:21 ` Badari Pulavarty
2009-09-18 14:12   ` Theodore Tso
2009-09-18 14:25     ` Arjan van de Ven
2009-09-20 18:17       ` Jan Kara
2009-09-23 14:16   ` Christoph Hellwig

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).