[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>
This commit is contained in:
@@ -1180,10 +1180,11 @@ __generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov,
|
|||||||
if (retval > 0)
|
if (retval > 0)
|
||||||
*ppos = pos + retval;
|
*ppos = pos + retval;
|
||||||
}
|
}
|
||||||
file_accessed(filp);
|
if (likely(retval != 0)) {
|
||||||
if (retval != 0)
|
file_accessed(flip);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
retval = 0;
|
retval = 0;
|
||||||
if (count) {
|
if (count) {
|
||||||
|
Reference in New Issue
Block a user