Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43969
b: refs/heads/master
c: 98c4d57
h: refs/heads/master
i:
  43967: a14fa94
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Dec 10, 2006
1 parent 9402690 commit 43c9ce4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f88cc2e9c29c181557b477ee396375906acbc90
refs/heads/master: 98c4d57decf97bf8ddfe948a3266aa56b38b1a51
8 changes: 8 additions & 0 deletions trunk/fs/direct-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <linux/slab.h>
#include <linux/highmem.h>
#include <linux/pagemap.h>
#include <linux/task_io_accounting_ops.h>
#include <linux/bio.h>
#include <linux/wait.h>
#include <linux/err.h>
Expand Down Expand Up @@ -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?
*/
Expand Down

0 comments on commit 43c9ce4

Please sign in to comment.