From patchwork Fri Dec 15 17:42:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 10115679 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 66B9F6019C for ; Fri, 15 Dec 2017 17:46:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54E5A29EE1 for ; Fri, 15 Dec 2017 17:46:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49B282A024; Fri, 15 Dec 2017 17:46:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0383029EE1 for ; Fri, 15 Dec 2017 17:46:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755927AbdLORqn (ORCPT ); Fri, 15 Dec 2017 12:46:43 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:44937 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755824AbdLORqm (ORCPT ); Fri, 15 Dec 2017 12:46:42 -0500 Received: by mail-pf0-f194.google.com with SMTP id m26so6623272pfj.11; Fri, 15 Dec 2017 09:46:41 -0800 (PST) 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; bh=yDI+FhSwWASk+6mk0jXE00hXJAq+KAonSRcnJKIFjK4=; b=rpjJQ3aUDvHGeWerTpyiwH4qro30dwaTroqzHEEBfrkyWpZeuCllWzheRSrx8wPt4K 5VqsSmWaO9ND7UCUWQO3VbHaPdzN+wdVWeqijzF1PvXnqeiGb75KFDfYd1dwzxobrLAJ gCJLGqM6eOHk7hn2glgTRQr/V4L8RBYjQwT2xjrZNMdBjAfXare9O7hPUrsEEX5L3zXg 5yfo2vVy9blKU7fRvMMCPIbCmsPNAKARrYj+AMYxVaRnc64qbZEbStTk5PLbX49cig4J aq+Ybse/4eAolsEVyX8J2s0Lgq2cxW/sFCuV3WOqlhvUcPdRe6P5EYeSSOOHvJCo8ilp E8aA== 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; bh=yDI+FhSwWASk+6mk0jXE00hXJAq+KAonSRcnJKIFjK4=; b=a0UPisGnN/MDruNd4AKUXkJ4VIveAKKTTYf3BbJI3DbOULacSJPWEiu9RYP6jmBEnW iL/dosOjoD+7bEY746le21YDXpeFO1dvxHgJP3+2bNQVIzZhTJHFZSv/thK9AfDaoe0B Avl6R40auYuAsrA/BuwjJTjJe3JYV/o2etYPAZ4l80o/PsJPwK+49tvqd2Ub2httrPMR z+pVrs9tkYKgaA84RSYv8P6cTDvSucvc01Jjw0s2GK0Hf4EjVnluMwWazhCtytWnZFdJ rAxjiKQ6oHB6kAbf/Ube1F+Os/UwKjdpFbUZyouBdUK3HqhB+2kViDHPM9o8ZmKkLtD5 uSiw== X-Gm-Message-State: AKGB3mL1t7fxWr+OdPpuIegHmRz1eilVcVZL3Z751UOWyU+Qlgq8ChTC 2JSmGXQRHy66SX/U4z9AePEsJ+dEioo= X-Google-Smtp-Source: ACJfBovKaY+qEPM4m653NpEx/OG+NxAEAdE6ietxUi5iKsLRW9jNaI2eYC2A29Mcc7BdZZV//aU+XA== X-Received: by 10.84.242.76 with SMTP id c12mr14233312pll.445.1513360000930; Fri, 15 Dec 2017 09:46:40 -0800 (PST) Received: from zzz.localdomain (c-67-185-97-198.hsd1.wa.comcast.net. [67.185.97.198]) by smtp.gmail.com with ESMTPSA id j62sm12980149pfc.18.2017.12.15.09.46.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Dec 2017 09:46:40 -0800 (PST) From: Eric Biggers To: linux-fscrypt@vger.kernel.org Cc: "Theodore Y . Ts'o" , Jaegeuk Kim , linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mtd@lists.infradead.org, Eric Biggers Subject: [PATCH 03/24] fscrypt: move fscrypt_info_cachep declaration to fscrypt_private.h Date: Fri, 15 Dec 2017 09:42:04 -0800 Message-Id: <20171215174225.31583-4-ebiggers3@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171215174225.31583-1-ebiggers3@gmail.com> References: <20171215174225.31583-1-ebiggers3@gmail.com> Sender: linux-fscrypt-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fscrypt@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Eric Biggers The fscrypt_info kmem_cache is internal to fscrypt; filesystems don't need to access it. So move its declaration into fscrypt_private.h. Signed-off-by: Eric Biggers --- fs/crypto/fscrypt_private.h | 1 + include/linux/fscrypt_supp.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/crypto/fscrypt_private.h b/fs/crypto/fscrypt_private.h index c0b4f5597e1a..823c43a00bf7 100644 --- a/fs/crypto/fscrypt_private.h +++ b/fs/crypto/fscrypt_private.h @@ -72,6 +72,7 @@ typedef enum { #define FS_CTX_HAS_BOUNCE_BUFFER_FL 0x00000002 /* crypto.c */ +extern struct kmem_cache *fscrypt_info_cachep; extern int fscrypt_initialize(unsigned int cop_flags); extern struct workqueue_struct *fscrypt_read_workqueue; extern int fscrypt_do_page_crypto(const struct inode *inode, diff --git a/include/linux/fscrypt_supp.h b/include/linux/fscrypt_supp.h index ad40780d4653..33d641e27c18 100644 --- a/include/linux/fscrypt_supp.h +++ b/include/linux/fscrypt_supp.h @@ -17,7 +17,6 @@ static inline bool fscrypt_has_encryption_key(const struct inode *inode) } /* crypto.c */ -extern struct kmem_cache *fscrypt_info_cachep; extern struct fscrypt_ctx *fscrypt_get_ctx(const struct inode *, gfp_t); extern void fscrypt_release_ctx(struct fscrypt_ctx *); extern struct page *fscrypt_encrypt_page(const struct inode *, struct page *,