Prev: [RFC][PATCH 11/11] blkiocg async: Workload timeslice adjustment for async queues
Next: [RFC][PATCH 09/11] blkiocg async: Functions to get cfqg from bio
From: Munehiro Ikeda on 8 Jul 2010 23:30 This patch is for ext4 to utilize iotrack. ext4_writepage() calls block_commit_write() if the page doesn't has buffer. This overwrites original iotrack info who dirtied the page. To prevent this, this patch changes block_commit_write() call into block_commit_write_noiotrack() call in ext4_writepage(). ToDo: To check if there is fs which overwrites the info other than ext4. Signed-off-by: Munehiro "Muuhh" Ikeda <m-ikeda(a)ds.jp.nec.com> --- fs/ext4/inode.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 42272d6..45a2d51 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -2737,7 +2737,7 @@ static int ext4_writepage(struct page *page, return 0; } /* now mark the buffer_heads as dirty and uptodate */ - block_commit_write(page, 0, len); + block_commit_write_noiotrack(page, 0, len); } if (PageChecked(page) && ext4_should_journal_data(inode)) { -- 1.6.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |