aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-09-27 14:45:07 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-27 14:45:07 -0400
commit0e0bcae3bfb3c88dbe14735fa69d7d88794dc73a (patch)
treecccd335fd1d295d28a345bdcc1c8e0bf5974af47 /mm
parent7e18c02be7c83a8cfd1319f0117f63509c20aa8e (diff)
[GFS2] Fix direct i/o logic in filemap.c
We shouldn't mark the file accessed in the case that it wasn't accessed. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'mm')
-rw-r--r--mm/filemap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index d9bbea1e87d2..91a741ddd49d 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1180,9 +1180,10 @@ __generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov,
1180 if (retval > 0) 1180 if (retval > 0)
1181 *ppos = pos + retval; 1181 *ppos = pos + retval;
1182 } 1182 }
1183 file_accessed(filp); 1183 if (likely(retval != 0)) {
1184 if (retval != 0) 1184 file_accessed(flip);
1185 goto out; 1185 goto out;
1186 }
1186 } 1187 }
1187 1188
1188 retval = 0; 1189 retval = 0;