projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e18c02
)
[GFS2] Fix direct i/o logic in filemap.c
author
Steven Whitehouse
<swhiteho@redhat.com>
Wed, 27 Sep 2006 18:45:07 +0000
(14:45 -0400)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Wed, 27 Sep 2006 18:45:07 +0000
(14:45 -0400)
We shouldn't mark the file accessed in the case that it
wasn't accessed.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
mm/filemap.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/filemap.c
b/mm/filemap.c
index d9bbea1e87d23a6f153374a4635332c499ce480e..91a741ddd49d637dd52849352f18fc9bcdb28b23 100644
(file)
--- a/
mm/filemap.c
+++ b/
mm/filemap.c
@@
-1180,9
+1180,10
@@
__generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov,
if (retval > 0)
*ppos = pos + retval;
}
- file_accessed(filp);
- if (retval != 0)
+ if (likely(retval != 0)) {
+ file_accessed(flip);
goto out;
+ }
}
retval = 0;
This page took
0.025394 seconds
and
5
git commands to generate.