diff --git a/[refs] b/[refs] index 1aa63f30b1d5..4afb58563477 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6f88cc2e9c29c181557b477ee396375906acbc90 +refs/heads/master: 98c4d57decf97bf8ddfe948a3266aa56b38b1a51 diff --git a/trunk/fs/direct-io.c b/trunk/fs/direct-io.c index 5981e17f46f0..45d34d807391 100644 --- a/trunk/fs/direct-io.c +++ b/trunk/fs/direct-io.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -675,6 +676,13 @@ submit_page_section(struct dio *dio, struct page *page, { int ret = 0; + if (dio->rw & WRITE) { + /* + * Read accounting is performed in submit_bio() + */ + task_io_account_write(len); + } + /* * Can we just grow the current page's presence in the dio? */