linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* journal start/stop in ext3_writeback_writepage()
@ 2005-02-09 16:18 Badari Pulavarty
  2005-02-09 16:37 ` Stephen C. Tweedie
  0 siblings, 1 reply; 11+ messages in thread
From: Badari Pulavarty @ 2005-02-09 16:18 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: sct, Andrew Morton

Hi,

I am trying to understand journaling code in ext3. 
Can some one enlighten me, why we need journal start
and stop in ext3_writeback_writepage() ? The block
allocation is already made in prepare_write().

Whats the purpose of journal start/stop around 
block_write_full_page() ? Its not flushing metadata anyway ? 
Whats getting written to journal ?

Thanks,
Badari

static int ext3_writeback_writepage(struct page *page,
                                struct writeback_control *wbc)
{
        ...
        handle = ext3_journal_start(inode,
			ext3_writepage_trans_blocks(inode));
        ...                                                             
        ret = block_write_full_page(page, ext3_get_block, wbc);
        err = ext3_journal_stop(handle);
	...

}


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

end of thread, other threads:[~2005-02-11  0:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-09 16:18 journal start/stop in ext3_writeback_writepage() Badari Pulavarty
2005-02-09 16:37 ` Stephen C. Tweedie
2005-02-09 18:38   ` Badari Pulavarty
2005-02-09 23:24     ` Stephen C. Tweedie
2005-02-10 17:39   ` Badari Pulavarty
2005-02-10 19:07     ` Sonny Rao
2005-02-10 19:17     ` Badari Pulavarty
2005-02-10 20:21       ` Andrew Morton
2005-02-10 23:12         ` Stephen C. Tweedie
2005-02-11  0:22           ` [Ext2-devel] " Badari Pulavarty
2005-02-11  0:27             ` Andrew Morton

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