From patchwork Wed Jul 3 06:11:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: majianpeng X-Patchwork-Id: 2815271 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 F05E0BF4A1 for ; Wed, 3 Jul 2013 06:12:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 84D8220125 for ; Wed, 3 Jul 2013 06:12:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17C072011B for ; Wed, 3 Jul 2013 06:12:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753701Ab3GCGME (ORCPT ); Wed, 3 Jul 2013 02:12:04 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:58163 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751767Ab3GCGMC (ORCPT ); Wed, 3 Jul 2013 02:12:02 -0400 Received: by mail-pd0-f169.google.com with SMTP id y10so4301398pdj.14 for ; Tue, 02 Jul 2013 23:12:01 -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=3Msq8WRIBEWqDGSiNh6ZKaz/WHDnbfIN/pFvDTpR28M=; b=IaPv2OPpJM1O3oHon+UtTO5u0jRYI90FcyXQEanQ+2/+Okj7/7Yzzm0zAT7A2ubk1F RyaNLCcTjypg7Kpplg6r3HBp4fT8IKLL0ASdp4REYSk+MMQQiU4sniSD2b8lKGzwvUrP jOcfJNa9BjUhnbV9DD+S3c6zumgcXnLaDEsAfFMme2nf1Nl5P2VKMetgs5O8q3u2ZQTD ARUSaUuBl5T3Einzu5hv8kD52DpA7RSI7g5Vx9lwZyNYBDtqqzl4JQHpT2/ATej7EMai PyOkS1nmLrs8oVEcXrH8hmbN1Sr0mgyh7tuemsP/N3tXOXYtWrupQtZD2iiFYChyoAeK AVyw== X-Received: by 10.66.158.39 with SMTP id wr7mr1037568pab.49.1372831921602; Tue, 02 Jul 2013 23:12:01 -0700 (PDT) Received: from majianpeng ([218.242.10.182]) by mx.google.com with ESMTPSA id 4sm15058107pbw.32.2013.07.02.23.11.49 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 02 Jul 2013 23:11:51 -0700 (PDT) Date: Wed, 3 Jul 2013 14:11:48 +0800 From: majianpeng To: sage Cc: ceph-devel , linux-kernel Reply-To: majianpeng Subject: [PATCH 2/2] ceph: for sync_read, call file_accessed to update atime. X-Priority: 3 X-GUID: 11AD6990-D96E-41B9-977E-8130DD297C8B X-Has-Attach: no X-Mailer: Foxmail 7.0.1.90[en] Mime-Version: 1.0 Message-ID: <201307031334535261195@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 For ceph_sync_read,it don't call file_accessed to update atime.But the buffer_read do it .So add it. Signed-off-by: Jianpeng Ma --- fs/ceph/file.c | 1 + 1 file changed, 1 insertion(+) -- 1.8.1.2 diff --git a/fs/ceph/file.c b/fs/ceph/file.c index fa74e6f..b0e6f0b 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c @@ -442,6 +442,7 @@ done: ceph_put_page_vector(pages, num_pages, true); else ceph_release_page_vector(pages, num_pages); + file_accessed(file); dout("sync_read result %d\n", ret); return ret; }