* [PATCH][TRIVIAL] ceph: Modify comments for checkeof.
@ 2013-07-26 3:24 majianpeng
0 siblings, 0 replies; only message in thread
From: majianpeng @ 2013-07-26 3:24 UTC (permalink / raw)
To: sage; +Cc: ceph-devel
If we met checkeof,it only for eof rather than hithole.So update the
comments.
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
---
fs/ceph/file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 2ddf061..d1b5f61 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -674,9 +674,9 @@ out:
if (checkeof && ret >= 0) {
int statret = ceph_do_getattr(inode, CEPH_STAT_CAP_SIZE);
- /* hit EOF or hole? */
+ /* hit EOF*/
if (statret == 0 && *ppos < inode->i_size) {
- dout("aio_read sync_read hit hole, ppos %lld < size %lld, reading more\n", *ppos, inode->i_size);
+ dout("aio_read sync_read hit EOF, ppos %lld < size %lld, reading more\n", *ppos, inode->i_size);
read += ret;
base += ret;
len -= ret;
--
1.8.1.2
Thanks!
Jianpeng Ma
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-26 3:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-26 3:24 [PATCH][TRIVIAL] ceph: Modify comments for checkeof majianpeng
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.