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

For an appending write, ext3_commit_write() will call the expensive
ext3_mark_inode_dirty() twice.  Once in generic_commit_write()'s extension of
i_size and once in ext3_commit_write() itself where i_disksize is updated.

But by updating i_disksize _before_ calling generic_commit_write() these can
be piggybacked.

The patch takes the overhead of a write() from 1.96 microseconds down to
1.63.
fs/ext3/inode.c