]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: mark page accessed before we write_end()
authorJosef Bacik <josef@redhat.com>
Sun, 5 Jul 2009 19:08:18 +0000 (12:08 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 21:40:13 +0000 (14:40 -0700)
commitb8fde9988b9d0934af55dd2269dafec15f5f6302
tree39c3764069609e0f9a1da232e25770e1e3276c74
parent4752849e0a4b09acb68b029b01d8eb2250e92f6c
mm: mark page accessed before we write_end()

commit c8236db9cd7aa492dcfcdcca702638e704abed49 upstream.

In testing a backport of the write_begin/write_end AOPs, a 10% re-read
regression was noticed when running iozone.  This regression was
introduced because the old AOPs would always do a mark_page_accessed(page)
after the commit_write, but when the new AOPs where introduced, the only
place this was kept was in pagecache_write_end().

This patch does the same thing in the generic case as what is done in
pagecache_write_end(), which is just to mark the page accessed before we
do write_end().

Signed-off-by: Josef Bacik <jbacik@redhat.com>
Acked-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
mm/filemap.c