From patchwork Mon Jul 27 03:07:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kinglong Mee X-Patchwork-Id: 6867951 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 29AF59F434 for ; Mon, 27 Jul 2015 03:07:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4E59B20529 for ; Mon, 27 Jul 2015 03:07:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 758D3205FE for ; Mon, 27 Jul 2015 03:07:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755332AbbG0DHf (ORCPT ); Sun, 26 Jul 2015 23:07:35 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:33118 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755260AbbG0DHe (ORCPT ); Sun, 26 Jul 2015 23:07:34 -0400 Received: by pdbnt7 with SMTP id nt7so43635610pdb.0; Sun, 26 Jul 2015 20:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=xJxwml3JuqEmpbHrYxO3HfRTvSVwB/CZMb4KCfBAmZM=; b=WYYSPYv/xUbIReuTud5q2i46exMRDmQhtMdH3IyITxRsrlhyWQ+GiwmobTAcJPT7gq GPwGW6QJ3HnyEqcZJU2j5Lew88jFhqQR3YIziQrAHyAXc6ITpBeS+LNEERt+WWvWw8gS hUpNi8/c+9FX/OgVXKwtlxhq7uMbsg5kDQ6nxfyy3y19YVT3x1tK6Weee5CHiNMSYFSt iKiU2FDm3HHkzDBD4tzvi0j4Z9pMrX7l2KWENBwKkKYk2mXGo56v7HMPYIDVJ37lILQg 9sDUxpLAw06JSzDL4YPb9UjsiHs+aimwc8MbeHHRyGY6rRGEVegPm/DBrhMfJSkLiac5 HR/w== X-Received: by 10.70.53.1 with SMTP id x1mr63610306pdo.114.1437966454244; Sun, 26 Jul 2015 20:07:34 -0700 (PDT) Received: from [192.168.99.25] ([104.143.41.79]) by smtp.googlemail.com with ESMTPSA id ij17sm26491958pac.4.2015.07.26.20.07.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Jul 2015 20:07:33 -0700 (PDT) Message-ID: <55B5A06D.1070506@gmail.com> Date: Mon, 27 Jul 2015 11:07:25 +0800 From: Kinglong Mee User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "J. Bruce Fields" , Al Viro CC: "linux-nfs@vger.kernel.org" , linux-fsdevel@vger.kernel.org, NeilBrown , Trond Myklebust , kinglongmee@gmail.com Subject: [PATCH 2/9 v8] fs_pin: Export functions for specific filesystem References: <55B5A012.1030006@gmail.com> In-Reply-To: <55B5A012.1030006@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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 Exports functions for others who want pin to vfsmount, eg, nfsd's export cache. v8, same as v4 add exporting of pin_kill. Signed-off-by: Kinglong Mee Reviewed-by: NeilBrown --- fs/fs_pin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/fs_pin.c b/fs/fs_pin.c index 611b540..a1a4eb2 100644 --- a/fs/fs_pin.c +++ b/fs/fs_pin.c @@ -17,6 +17,7 @@ void pin_remove(struct fs_pin *pin) wake_up_locked(&pin->wait); spin_unlock_irq(&pin->wait.lock); } +EXPORT_SYMBOL(pin_remove); void pin_insert_group(struct fs_pin *pin, struct vfsmount *m, struct hlist_head *p) { @@ -26,11 +27,13 @@ void pin_insert_group(struct fs_pin *pin, struct vfsmount *m, struct hlist_head hlist_add_head(&pin->m_list, &real_mount(m)->mnt_pins); spin_unlock(&pin_lock); } +EXPORT_SYMBOL(pin_insert_group); void pin_insert(struct fs_pin *pin, struct vfsmount *m) { pin_insert_group(pin, m, &m->mnt_sb->s_pins); } +EXPORT_SYMBOL(pin_insert); void pin_kill(struct fs_pin *p) { @@ -72,6 +75,7 @@ void pin_kill(struct fs_pin *p) } rcu_read_unlock(); } +EXPORT_SYMBOL(pin_kill); void mnt_pin_kill(struct mount *m) {