From patchwork Fri Jul 26 03:24:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: majianpeng X-Patchwork-Id: 2833772 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C23A2C0319 for ; Fri, 26 Jul 2013 03:24:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4CE81200EB for ; Fri, 26 Jul 2013 03:24:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C0427200E7 for ; Fri, 26 Jul 2013 03:24:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756302Ab3GZDY3 (ORCPT ); Thu, 25 Jul 2013 23:24:29 -0400 Received: from mail-pb0-f53.google.com ([209.85.160.53]:37741 "EHLO mail-pb0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753924Ab3GZDY2 (ORCPT ); Thu, 25 Jul 2013 23:24:28 -0400 Received: by mail-pb0-f53.google.com with SMTP id up15so866114pbc.12 for ; Thu, 25 Jul 2013 20:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:reply-to:subject:x-priority:x-guid:x-has-attach :x-mailer:mime-version:message-id:content-type :content-transfer-encoding; bh=8LqsoA2wnkdKVKG0cgLM0dwmm9jg4XtEjbrqhCo9Hts=; b=tR1123JS9qY78ugvCZ1lU8KUgGHlDg9AMVm3pzj6S6s0K1c8vmsT6MC9oYqkjiZRjS gCcE7tbIR5KzmVcZWXVA2Qa2YvgI78F3KmPFpWQRu31rvuvdDSHiaMgcMcCGMqwkJiNG qtWSBuZNe6j9A/UtZLzbj5DqoMKrrdenqrvqYpBhhJMJ+GK9VwlyCzu3mjFU8ty7o432 IGzpuKnX6i82nTytqbGQOLG+Wf4CDOKVvg3JPYU6y3reAZXN9YHoAelLxwx84/JSyXdR cJm9sBBsyw8kj6jqdJDSelQB6cgX2VTvlWB6GVo7tVJDzZkzGh4a034G2xqbJQ53eshw NdrQ== X-Received: by 10.66.186.204 with SMTP id fm12mr27272587pac.189.1374809068250; Thu, 25 Jul 2013 20:24:28 -0700 (PDT) Received: from majianpeng ([218.242.10.182]) by mx.google.com with ESMTPSA id tr10sm57264821pbc.22.2013.07.25.20.24.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 25 Jul 2013 20:24:27 -0700 (PDT) Date: Fri, 26 Jul 2013 11:24:23 +0800 From: majianpeng To: sage Cc: ceph-devel Reply-To: majianpeng Subject: [PATCH][TRIVIAL] ceph: Modify comments for checkeof. X-Priority: 3 X-GUID: 877B9621-14C3-49DC-A91D-8F0C9F0FAE33 X-Has-Attach: no X-Mailer: Foxmail 7.0.1.90[en] Mime-Version: 1.0 Message-ID: <201307261124210922813@gmail.com> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If we met checkeof,it only for eof rather than hithole.So update the comments. Signed-off-by: Jianpeng Ma --- fs/ceph/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.8.1.2 Thanks! Jianpeng Ma 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;