Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1860985ybe; Tue, 3 Sep 2019 04:44:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxfR+azBM22iY2QKpwjIlmO8J8NKZj+1e7wxaFIu85fjfimzsnhqX4qXtr2tPuW3Ek6djo X-Received: by 2002:a65:52ca:: with SMTP id z10mr30787706pgp.424.1567511079245; Tue, 03 Sep 2019 04:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567511079; cv=none; d=google.com; s=arc-20160816; b=QIP3BXPLwDx2+Ym4bAvwPP2m6BmleUZu9k5LNwtNE+k6NM/Wbgl3ndNxDpXQ8ZA2LZ Uthb99TR5UI1CPuZ+RA3Ox//Cl9j1Fk9OQlg+Chfh6er1KI4khg1uc+iFGoPaVrETiHx PtsWRbeYN3vL518h7tPYqZeLI+RiuPeEU2KEKOjcvzOcalOVqtvfpagRnaLc6ELwEw29 yoCR76XhfrlswV22SJmjJmoW5DFimi7wdmhmoyyaMohJ7nb+pE/S7rNubM46k/1xis/b K5wGsXe9j6DagEfe/RuPrMavCU8ZxdEgaU18XGJxcYH9XdUcote5ofRu4YzoLG/knZ9l fFTA== 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=/ydFLCcq0ciOZyr1APkM5OIxojvSPh3+JfyuTKS+43s=; b=cBid5BZdfi3NSJmroKEaJOu8P2YpKXSKmXZkzohhHmngm+BDuqwLFr6nde+PbMYzF2 n1Lo/Mz9rjUC4/mqjMeMmy4R7mCDy0lRg973xRIaLrWWF63LknM7iITQKvGNLef9bbnc zPu+wF7q2ls7sBo1pGFIwGNKHuyQCI5KV+kToaEydxziT5VWAUo0OuYwWO4l9L/hIj7T 7YpcdVUTtFZgiQ6oNKDS+FZLueNTd1SSwYG6/elp/khYCswCiAvub+qs35nI85ueKThU xTAKP/LoDpMcVv2nhzd/B0Lx8UP5AVWA5uIv1Thmn+nmdDdchdunNPcOYtuH+61+mCrg pmWw== 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 k8si14421714pgt.548.2019.09.03.04.44.24; Tue, 03 Sep 2019 04:44:39 -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 S1729059AbfICLmL (ORCPT + 99 others); Tue, 3 Sep 2019 07:42:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49062 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729016AbfICLmI (ORCPT ); Tue, 3 Sep 2019 07:42:08 -0400 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 31E52811BF for ; Tue, 3 Sep 2019 11:42:08 +0000 (UTC) Received: by mail-wm1-f70.google.com with SMTP id v4so4215605wmh.9 for ; Tue, 03 Sep 2019 04:42:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/ydFLCcq0ciOZyr1APkM5OIxojvSPh3+JfyuTKS+43s=; b=qljSJbmQzrBkn4qYIb2xsV0ayD3Hib5cFr8y3kFzB8ujQAyDZ3zU9mbJ+G8EfS73+F czoFK8Ldze6q8K0bloZCXrrEybBy8bZUaH/Asr2gRAg411HUdtXRsUFqXfqFRy4Q9iBp SQsFPd0UIv99Rn1Mrw+R5dw3eK5/9LT1Qws7RHH6isCjIRPAfbaq73J3XEHzeglFivce k3a5WweD+ijWtf9GWQDMFDuV4Rqbv4Iie4jX77Zr/tTjEhDetm+mOoK1mI4fuiZ9HC7J it6Y8/oZ+hJbGSI90mwdOJ8LiaXeg8OX5epOPjNwEDOb4VkBtz9532FMMsIVpY02bYf3 OFZQ== X-Gm-Message-State: APjAAAW6hyev2hsfNSNtq5MX/j2CzA5ctaATb4mAyARUy79aLwf25SKm 7EdXZMcGVbOXw+zoqwMTiC2M2FJanjyYuzPq3oR7scOPTP4DL9IrDLcdwHuxGYIPF7Cq84DNImZ pjNGyRaW61rGyJtyy9ZBHLTu0 X-Received: by 2002:a7b:c947:: with SMTP id i7mr43660043wml.77.1567510926813; Tue, 03 Sep 2019 04:42:06 -0700 (PDT) X-Received: by 2002:a7b:c947:: with SMTP id i7mr43660009wml.77.1567510926604; Tue, 03 Sep 2019 04:42:06 -0700 (PDT) Received: from miu.piliscsaba.redhat.com (catv-212-96-48-140.catv.broadband.hu. [212.96.48.140]) by smtp.gmail.com with ESMTPSA id x6sm2087551wmf.38.2019.09.03.04.42.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 04:42:06 -0700 (PDT) From: Miklos Szeredi To: virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org Cc: Stefan Hajnoczi , linux-kernel@vger.kernel.org, "Michael S. Tsirkin" , Vivek Goyal , "Dr. David Alan Gilbert" Subject: [PATCH v4 07/16] fuse: export fuse_get_unique() Date: Tue, 3 Sep 2019 13:41:54 +0200 Message-Id: <20190903114203.8278-2-mszeredi@redhat.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190903113640.7984-1-mszeredi@redhat.com> References: <20190903113640.7984-1-mszeredi@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Miklos Szeredi --- 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 bd2e5958d2f9..167f476fbe16 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -363,11 +363,12 @@ unsigned int fuse_len_args(unsigned int 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 8ced5e74e5a8..7e19c936ece8 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -1104,4 +1104,9 @@ int fuse_readdir(struct file *file, struct dir_context *ctx); */ unsigned int fuse_len_args(unsigned int 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.21.0