Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp933938yba; Wed, 15 May 2019 12:31:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0Pwd9EBS6NGUmj4fj7s9FG+G1WtDwCt5vIkt+qyn0JvLqblvktj7GkyCvI/m/10VazOYS X-Received: by 2002:aa7:8243:: with SMTP id e3mr48949437pfn.213.1557948703035; Wed, 15 May 2019 12:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557948703; cv=none; d=google.com; s=arc-20160816; b=BcQD3Wul8fS1KCV9asW5/ZM6dFiF6iDny4GJx9BVpSKzID5ESBjEBdqBu2BA3OJ8Qe GBPNqRLVtgMKWurV+lu+9cB0vm1wkh5SWrtdViFlWyDyoO8913lyn9Ih3cItSNXpAVPo oOTxyyEArWJsN28Cx71SSuJmbdC/edKxY3ZzKjcXIYIBiPjNBpSjPki165LMHWkN76Jx Afr/E9QOam+JLwN8xG9sxa3HoQLZimQPyQGmv1/jPzFjP7VdxgrcRuaVy34QCchAL1kS lVncM66Udd7wSh8yGApLqL7HJM6i+tBkyb8+6thrraE1lznXn4nDCpwWAQVxSeBa8ZjP aEKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=zwp48LizY93uHVyjB3F7ZFP3WB9S5t/32Ho6QuISDgc=; b=L9UznygLHLv00pVgiR0TVPVMlohToYh/QuoUw+3Ud870gTzC69RtpqB+nzF2obfonT BokLyUqKSFn3wGDWOrxlGQv6xvZgafCamub91MhqigSoNADj7Bpl9M9h1QsSSj8mKK8c ILInUHnzTxdL2ozky/RYAEvImswYbg8kDn0FqAeMGaG+OiWFZpENLv5RBaOpeDK/lC0Q HIWNsqysv++Gj2fEWBttNlJeZ1HjzUk2cuFrtY59t4ptqBe1kGEYMFLPYgpAZTRmhana +KPs3unnfBS/E3VALute2g190fGaGlkio5xW4h7Gg+FWGf2hrWOfab1U6fI9k/PuDPiA aeqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j8si874404plt.134.2019.05.15.12.31.27; Wed, 15 May 2019 12:31:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727997AbfEOT20 (ORCPT + 99 others); Wed, 15 May 2019 15:28:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44056 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727716AbfEOT1f (ORCPT ); Wed, 15 May 2019 15:27:35 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7771931760ED; Wed, 15 May 2019 19:27:35 +0000 (UTC) Received: from horse.redhat.com (unknown [10.18.25.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id 98F13608AB; Wed, 15 May 2019 19:27:32 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 823A022547B; Wed, 15 May 2019 15:27:29 -0400 (EDT) From: Vivek Goyal To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-nvdimm@lists.01.org Cc: vgoyal@redhat.com, miklos@szeredi.hu, stefanha@redhat.com, dgilbert@redhat.com, swhiteho@redhat.com Subject: [PATCH v2 07/30] fuse: export fuse_get_unique() Date: Wed, 15 May 2019 15:26:52 -0400 Message-Id: <20190515192715.18000-8-vgoyal@redhat.com> In-Reply-To: <20190515192715.18000-1-vgoyal@redhat.com> References: <20190515192715.18000-1-vgoyal@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Wed, 15 May 2019 19:27:35 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Hajnoczi virtio-fs will need unique IDs for FORGET requests from outside fs/fuse/dev.c. Make the symbol visible. Signed-off-by: Stefan Hajnoczi --- fs/fuse/dev.c | 3 ++- fs/fuse/fuse_i.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 40eb827caa10..42fd3b576686 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -363,11 +363,12 @@ unsigned fuse_len_args(unsigned numargs, struct fuse_arg *args) } EXPORT_SYMBOL_GPL(fuse_len_args); -static u64 fuse_get_unique(struct fuse_iqueue *fiq) +u64 fuse_get_unique(struct fuse_iqueue *fiq) { fiq->reqctr += FUSE_REQ_ID_STEP; return fiq->reqctr; } +EXPORT_SYMBOL_GPL(fuse_get_unique); static unsigned int fuse_req_hash(u64 unique) { diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 16f238d7f624..38a572ba650d 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -1097,4 +1097,9 @@ int fuse_readdir(struct file *file, struct dir_context *ctx); */ unsigned fuse_len_args(unsigned numargs, struct fuse_arg *args); +/** + * Get the next unique ID for a request + */ +u64 fuse_get_unique(struct fuse_iqueue *fiq); + #endif /* _FS_FUSE_I_H */ -- 2.20.1