From patchwork Wed May 6 13:19:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kinglong Mee X-Patchwork-Id: 6349611 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D3202BEEE5 for ; Wed, 6 May 2015 13:20:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 02FC2201FE for ; Wed, 6 May 2015 13:20:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1D430202EC for ; Wed, 6 May 2015 13:20:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751057AbbEFNUB (ORCPT ); Wed, 6 May 2015 09:20:01 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:36556 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808AbbEFNUB (ORCPT ); Wed, 6 May 2015 09:20:01 -0400 Received: by pdea3 with SMTP id a3so9612209pde.3; Wed, 06 May 2015 06:20:00 -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=CaW28jrfLom4qQSk2RUsfRirntJyxoAVcGInSiiLuto=; b=I6szCGxm2G30BOKQrPag+RtRlCUD56FfYrRqWh8qRszcA6MuPPTofapEjsjZo9rc0L A+7b34i90yPHAauNKXjiWYWni6EWDS9yXYbiOMHDHZxv9aufCPyw0UhJKs9HPCc0H9Ml 2YRD+a5+tUW24a/Qb+F6qVpwr48C5T2DTCWxu2dfGsIOaR6F7kLRlpJUHKmwmFOOLRde 8me8zznIdyUP3nFa8RJQY2DWJcnN/sJj7hlG4NiQ06zx6rHaNOocTbBZHEEZX386mLfE Dly02G73KR3LYMXSXuMKAnshruiKk6EgXMEYv7Qj/hJIBDEW0XYeJmVlwCsPF7rsWFdP gxzA== X-Received: by 10.66.228.130 with SMTP id si2mr60772522pac.92.1430918400639; Wed, 06 May 2015 06:20:00 -0700 (PDT) Received: from [192.168.99.11] ([104.143.41.79]) by mx.google.com with ESMTPSA id dp7sm1964745pdb.10.2015.05.06.06.19.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2015 06:19:59 -0700 (PDT) Message-ID: <554A14FA.50407@gmail.com> Date: Wed, 06 May 2015 21:19:54 +0800 From: Kinglong Mee User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Al Viro , linux-fsdevel@vger.kernel.org, "linux-nfs@vger.kernel.org" CC: "J. Bruce Fields" , NeilBrown , Trond Myklebust , kinglongmee@gmail.com Subject: [PATCH 2/4] fs_pin: Export functions for specific filesystem References: <554A149B.5060102@gmail.com> In-Reply-To: <554A149B.5060102@gmail.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@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, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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. Signed-off-by: Kinglong Mee --- fs/fs_pin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/fs_pin.c b/fs/fs_pin.c index 611b540..553e8b1 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) {