From patchwork Wed Jun 17 07:50:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kinglong Mee X-Patchwork-Id: 6622481 Return-Path: X-Original-To: patchwork-linux-fsdevel@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 AD01AC0020 for ; Wed, 17 Jun 2015 07:50:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CA88520834 for ; Wed, 17 Jun 2015 07:50:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E3DC520835 for ; Wed, 17 Jun 2015 07:50:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754342AbbFQHuZ (ORCPT ); Wed, 17 Jun 2015 03:50:25 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:34607 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753162AbbFQHuX (ORCPT ); Wed, 17 Jun 2015 03:50:23 -0400 Received: by pdbki1 with SMTP id ki1so32759646pdb.1; Wed, 17 Jun 2015 00:50:22 -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=GzpflkmLGOjFxEzJ5Q3oRUU4raPNrKNR93ydjm2tqU4=; b=qlASkNmrRjQ+h9rnLJPE1o2j/5C8wlkGP9fNotY+Hp7t07tkZUrqywbDxhr1Vg7vy8 0WkCqFgxrQ/onDUb1dPzIGtFvTLM9t198NRTbaJ4WfGyRihCaNfm6cJQXe+ko0HVSalh 82pyNLVbFc59U6mDZpxe9Mp3g9ZB6cDi6hDEamQVw+nAG2+vjVDD5IEShQqzxZTJa2mN 96sHcFPnT+LywZDxdnXy1Q49aFxkLRXCwPhYcu84pSrScV6Q51owfn7sQTacid1TTuQA vpt6Q76z0RVc1r1ZGG9v8I0/851N+iwABLyup1J3572vG97LmxbElUe+hoSp9f/Admrf hQ8w== X-Received: by 10.67.6.231 with SMTP id cx7mr8147125pad.79.1434527422182; Wed, 17 Jun 2015 00:50:22 -0700 (PDT) Received: from [192.168.99.30] ([104.143.41.79]) by mx.google.com with ESMTPSA id qs5sm3663646pbb.37.2015.06.17.00.50.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jun 2015 00:50:21 -0700 (PDT) Message-ID: <558126B7.8050700@gmail.com> Date: Wed, 17 Jun 2015 15:50:15 +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: Al Viro , "J. Bruce Fields" , "linux-nfs@vger.kernel.org" , linux-fsdevel@vger.kernel.org CC: NeilBrown , Trond Myklebust , kinglongmee@gmail.com Subject: [PATCH 2/6 v5] fs_pin: Export functions for specific filesystem References: <5581266C.9080404@gmail.com> In-Reply-To: <5581266C.9080404@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=-7.4 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. v4, v5, add exporting of pin_kill. Signed-off-by: Kinglong Mee --- 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) {