Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2925701ybh; Mon, 5 Aug 2019 09:04:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqw762vZx+vMlfvqE9Ooy4Ehm/Y8gmfoUnuUQzKiWQc6SMWKmUMvtVY4iR2qyChY7n9eslaB X-Received: by 2002:a65:6495:: with SMTP id e21mr138396589pgv.359.1565021065656; Mon, 05 Aug 2019 09:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565021065; cv=none; d=google.com; s=arc-20160816; b=yQd45OAOB7M7Br8o0j4w7silH8oapoddbJpBul6ya6EFMEhQtvPoeBcLmi09H9vqcy nXP3ePkl6opsylW/T6yKvu9NP+1qropqfaoYz5+TXCGccGm/JW1BYU2LDkWZEGHaKJUT ePhnJPKhrrtg+Bh1bFFghDzq3g+76AkjLgiBkzbt2PUyj9sFL0YOhDx5my6/JrKBoxhg SdCb7qSOWUf5HEL4cwio6h+FsTYLAlbGTX2Z0aoDf+yTgrOEkrUSpo/LBhBoWNYh1aTt 3UvC6eOBoi3B1TY0tDszWeaVjRXuIEXlaK8mqCh8v4TfqZFsn1YrP+I3JQifWbeGxEIV 9guQ== 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 :dkim-signature; bh=kAXH7dmfPxkVKecczubWm28FV2SWqcc9gtgOItNZVds=; b=EaPhPYbG06UaRYS5uvI/fHEYBv8xkVkR7AtuoW4sMVIdp6TLTSkPblD6auL7V5U58p Cc6Lpl+oNUsZCMsUQsAOh00GppxSqtE/e4JWHQxDrJbSZrSVmPycCpmdlf5Q/RD517zK N5p7DrhUZWup77Xt0OiYosRtA2qc4qjhauZFKqkjnSIVns2hjPLko7w0PJc+GtOzcHpF neOjvKkt+4OF68fvZIG8EclXee2E0GJCOif4vxi+sU5jZdprJLdFia13/hfQWkWPPVBa lxJ20aHhRFwGPtMioOjYLgzFkxC+vTDS77+aGXy5O3wHd1Jqc+KwO/bmdgqGEMDBeCVi AIhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Gxr2l8y9; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bh8si40136391plb.175.2019.08.05.09.04.10; Mon, 05 Aug 2019 09:04:25 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Gxr2l8y9; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729234AbfHEQDX (ORCPT + 99 others); Mon, 5 Aug 2019 12:03:23 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:38088 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727349AbfHEQDX (ORCPT ); Mon, 5 Aug 2019 12:03:23 -0400 Received: by mail-pg1-f195.google.com with SMTP id z14so2744038pga.5; Mon, 05 Aug 2019 09:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kAXH7dmfPxkVKecczubWm28FV2SWqcc9gtgOItNZVds=; b=Gxr2l8y9Iy7q36cxCIwqgG158KVCtlGm8lkLRUTOv98oC1Wod5J5OKLzhTcJxGIU3W T1zKPk1hL60RlPdDYiOTAWf9MwJIP9vagDX9NnaedrXfOwZvJYn9QrtZ3JT0luCQvIDF WodtpFaOOJwSsvXWeatwwE5bo5LGHCxe+DOOpXov01IWS+50r+Ji9AUoQypZ7ctvIH14 W/2ZV0yihcylvdOXU4zZejgAoYLGdATzhBfjLKYAZ8sYK4SqMdQoTOf7qXunsSxXwXkp wydhszXgY9YN2Q2y2aoj3zKKGWQyqmEMDIZ9ThwJCGq+TsexbxSWcc5A93L0zM+Hgvra O/0Q== 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=kAXH7dmfPxkVKecczubWm28FV2SWqcc9gtgOItNZVds=; b=SeOei+HXOicHR35jR3iThYFKrQL6jxr5f1ab721EB759rC4HlhgWHQe8aU2+/5Zwd1 aUw3+NgZBOlJrP7ROKHzCrGxBG4kPV262oyB+T1ewn93aoQyZ55e+rSCnqEENjLxE993 xjoR2IMJTMmut4xloKKYcNuNz9tod9lbRfgVLLiPMaXKzzgBeZWEuCbJJ3GnHaCn/prJ UYqLs8/dsVFX9MAnNVxe3ESYjgZNxoVZOgbkLdGO6shaI4SnP2Cm4B2Ier5glsnxmMZF bUGKvvA92oBKCzDhqKOnC6llCQG7Vzhkrm1SR2tlaDqG2pGrLc6hu4DZx1cc2bovn73j 4AtQ== X-Gm-Message-State: APjAAAWwG3EhTdWQUE0UoA4cdPCb13GKmkBfYyQkGNkdaMNrvZU4kjfn VrnMjPaKqGsYzkBWxOhREDk= X-Received: by 2002:a17:90a:bb01:: with SMTP id u1mr18412038pjr.92.1565021002178; Mon, 05 Aug 2019 09:03:22 -0700 (PDT) Received: from localhost.localdomain ([121.137.63.184]) by smtp.gmail.com with ESMTPSA id n98sm17061262pjc.26.2019.08.05.09.03.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 09:03:21 -0700 (PDT) From: Sergey Senozhatsky To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Chris Wilson , Alexander Viro , David Howells , Christoph Hellwig Cc: David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Sergey Senozhatsky Subject: [PATCHv2 1/3] fs: export put_filesystem() Date: Tue, 6 Aug 2019 01:03:05 +0900 Message-Id: <20190805160307.5418-2-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805160307.5418-1-sergey.senozhatsky@gmail.com> References: <20190805160307.5418-1-sergey.senozhatsky@gmail.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 Modules can use get_fs_type(), which is exported, but are unable to put_filesystem(). Export it and let modules to also decrement corresponding file systems' reference counters. Signed-off-by: Sergey Senozhatsky --- fs/filesystems.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/filesystems.c b/fs/filesystems.c index 9135646e41ac..02669839b584 100644 --- a/fs/filesystems.c +++ b/fs/filesystems.c @@ -45,6 +45,7 @@ void put_filesystem(struct file_system_type *fs) { module_put(fs->owner); } +EXPORT_SYMBOL(put_filesystem); static struct file_system_type **find_filesystem(const char *name, unsigned len) { -- 2.22.0