]> git.hungrycats.org Git - linux/commit
[PATCH] ext3_mark_inode_dirty() speedup
authorAndrew Morton <akpm@digeo.com>
Thu, 3 Apr 2003 00:29:21 +0000 (16:29 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 3 Apr 2003 00:29:21 +0000 (16:29 -0800)
commitf0f46afd7b67aa9143c22bc7e704413f126c3eb3
treeada6676318170201d04cb2082dcd3213ca1cee0a
parent7ba93ca79e75ac3eca6c08597b0c88abbd09e1e1
[PATCH] ext3_mark_inode_dirty() speedup

ext3_mark_inode_dirty() (and several other callers) use the
ext3_reserve_inode_write() and ext3_mark_ioc_dirty() pair for journalling an
inode's backing block.

Because ext3_reserve_inode_write() gets journalling access to the block there
is no need for ext3_mark_iloc_dirty() to do it as well.

This change reduces the overhead of a write() from 2.7 microseconds to 1.95
on a 2.7G P4.
fs/ext3/inode.c