提交 0e0bcae3 编写于 作者: S Steven Whitehouse

[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: NSteven Whitehouse <swhiteho@redhat.com>
上级 7e18c02b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册