From patchwork Thu Jun 25 14:19:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kinglong Mee X-Patchwork-Id: 6675461 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 F32F59F39B for ; Thu, 25 Jun 2015 14:19:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 10D87206C7 for ; Thu, 25 Jun 2015 14:19:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8AD6D206C0 for ; Thu, 25 Jun 2015 14:19:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751812AbbFYOTd (ORCPT ); Thu, 25 Jun 2015 10:19:33 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:36278 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbbFYOTc (ORCPT ); Thu, 25 Jun 2015 10:19:32 -0400 Received: by paceq1 with SMTP id eq1so50618642pac.3; Thu, 25 Jun 2015 07:19:32 -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=f/OoLXYCZn6iprd5s4+nihzdSVQqAX0F1CHzzNVrej0=; b=uveL7316kGNXaX2cyYh9mJL3SqoqdhU89Kv+CW4qxwVOe5ZCKa/APeJQm5nhjtNZ1t 54tc4vmNfMCnEE1jXNdwdCmsDsxX8vJkDvxrKvdE7SzfAsUNwJanVgOYOHHGgbqZXO+0 PGK08JhyyfoelvCiuAnnOf9DDnzddDiKy4esCCcXQgWRQVFa8aGiHuSefmPH5KasKYOF CnParv7vlamdTboT02uqEETkh+FH0bRcgHaBu0pw9dPHR/aQIVzqwhK/FnNgJbzBZlmp WlrbAi8bTbxvI/nOGIIgnoDniX50V4ivc4cey402Mr+wVIzzvl75k42wd8J6GhkPdJFY +lFQ== X-Received: by 10.68.131.225 with SMTP id op1mr250852pbb.86.1435241972046; Thu, 25 Jun 2015 07:19:32 -0700 (PDT) Received: from [192.168.99.10] ([104.143.41.79]) by mx.google.com with ESMTPSA id iv7sm30240523pbc.20.2015.06.25.07.19.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 07:19:31 -0700 (PDT) Message-ID: <558C0DE8.50509@gmail.com> Date: Thu, 25 Jun 2015 22:19:20 +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 02/10 v6] fs_pin: Export functions for specific filesystem References: <558C0D6A.9050104@gmail.com> In-Reply-To: <558C0D6A.9050104@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=-8.2 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, v6 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) {