Skip to contentSkip to conversation

ceph: Modify comments for checkeof.

PATCH New majianpeng 1 participant 1 message Jul 26, 2013 Ceph client

lore
Share & tools
lore

majianpeng

author
#0 lore raw

PATCH 1/1 ceph: Modify comments for checkeof.

If we met checkeof,it only for eof rather than hithole.So update the comments.

---
 fs/ceph/file.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/ceph/file.c +2 -2
index 2ddf061..d1b5f61 100644
@@ -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;
Signature · 4 lines
1.8.1.2

Thanks!
Jianpeng Ma