From patchwork Tue Jun 2 01:26:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kinglong Mee X-Patchwork-Id: 6525801 Return-Path: X-Original-To: patchwork-linux-nfs@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 48A4D9F1CC for ; Tue, 2 Jun 2015 01:26:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6B9492055D for ; Tue, 2 Jun 2015 01:26:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 82E132055B for ; Tue, 2 Jun 2015 01:26:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753913AbbFBB0c (ORCPT ); Mon, 1 Jun 2015 21:26:32 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:36036 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752550AbbFBB0b (ORCPT ); Mon, 1 Jun 2015 21:26:31 -0400 Received: by pdjm12 with SMTP id m12so37759067pdj.3; Mon, 01 Jun 2015 18:26:31 -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 :content-type:content-transfer-encoding; bh=+9+gbUcvWfZyeRC/dIKv4XHT7zuawTaLaWzl+cfwGU8=; b=L+kPpQzkAZhZRF6XiO7VKd+HVJMgOMudVX16A1P045I2NOx8bE3EIvRqJ7EF/AfXNc PcgbctUp8Eo2SgXarDFEnYOirbNnQL7vK4KPxQ5K1Ss7pRPAUJ7h0oDYZn04ka0WvH5E 5imDb1fM9BMUHHuwI0xl76JfK2SbR1424nrzetFdxBOgxhbh9mN8Rboonpsq3Ux0JTkS RvtCR65wo6S6L9ZXKEPQvbLoIVEYb8ZKWBEcSEZaAgQKyuQlgvyXlg5Id+Oiov4nJ4af E4Cq5HlihzOnSsHlOFb45bfI3sdfFbLPCyWm5SKF+h1eE1f67BchVzBrVBCjD9C/hBHQ o59g== X-Received: by 10.66.160.71 with SMTP id xi7mr44908256pab.19.1433208391113; Mon, 01 Jun 2015 18:26:31 -0700 (PDT) Received: from [192.168.99.19] ([104.143.41.79]) by mx.google.com with ESMTPSA id xv9sm15543169pbc.2.2015.06.01.18.26.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jun 2015 18:26:30 -0700 (PDT) Message-ID: <556D0640.70408@gmail.com> Date: Tue, 02 Jun 2015 09:26:24 +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-fsdevel@vger.kernel.org, "linux-nfs@vger.kernel.org" CC: NeilBrown , Trond Myklebust , kinglongmee@gmail.com Subject: [PATCH 2/5 v3] fs_pin: Export functions for specific filesystem 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. v3: same as v1. 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) {