From patchwork Mon Jan 28 02:28:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yan, Zheng" X-Patchwork-Id: 2052961 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id E444BDFE86 for ; Mon, 28 Jan 2013 02:28:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751977Ab3A1C2h (ORCPT ); Sun, 27 Jan 2013 21:28:37 -0500 Received: from mga01.intel.com ([192.55.52.88]:52188 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752143Ab3A1C2e (ORCPT ); Sun, 27 Jan 2013 21:28:34 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 27 Jan 2013 18:28:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,548,1355126400"; d="scan'208";a="279067357" Received: from zyan5-mobl.sh.intel.com ([10.239.36.156]) by fmsmga001.fm.intel.com with ESMTP; 27 Jan 2013 18:28:33 -0800 From: "Yan, Zheng" To: ceph-devel@vger.kernel.org, sage@inktank.com Cc: "Yan, Zheng" Subject: [PATCH 6/6] mds: clear inode dirty after slave rename finishes. Date: Mon, 28 Jan 2013 10:28:26 +0800 Message-Id: <1359340106-24257-7-git-send-email-zheng.z.yan@intel.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1359340106-24257-1-git-send-email-zheng.z.yan@intel.com> References: <1359340106-24257-1-git-send-email-zheng.z.yan@intel.com> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org From: "Yan, Zheng" The inode is linked to a non-auth directory, so remove it from LogSegment's dirty inode list. Signed-off-by: Yan, Zheng --- src/mds/Server.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 6dc3b9c..8080650 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -6345,7 +6345,10 @@ void Server::_logged_slave_rename(MDRequest *mdr, // remove mdr auth pin mdr->auth_unpin(srcdnl->get_inode()); mdr->more()->is_inode_exporter = true; - + + if (srcdnl->get_inode()->is_dirty()) + srcdnl->get_inode()->mark_clean(); + dout(10) << " exported srci " << *srcdnl->get_inode() << dendl; }