From patchwork Fri Jan 5 18:44:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 10146965 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 CD62D604A9 for ; Fri, 5 Jan 2018 18:57:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7AF528537 for ; Fri, 5 Jan 2018 18:57:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9AC42893A; Fri, 5 Jan 2018 18:57:59 +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 5229428537 for ; Fri, 5 Jan 2018 18:57:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752623AbeAES55 (ORCPT ); Fri, 5 Jan 2018 13:57:57 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:43554 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752491AbeAES50 (ORCPT ); Fri, 5 Jan 2018 13:57:26 -0500 Received: by mail-it0-f68.google.com with SMTP id u62so2626879ita.2; Fri, 05 Jan 2018 10:57:26 -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=nqfyMmuFplt+OKSiWdQTowYskHGoACdqgxkdFV3XPZE=; b=aYVNxJqtiVMxhGcxDVz27GQ4XUOurhjtlWiwH1jNL8sclEOG7jBCPSRPgJ5vdrFB1O bfxqTelyCOIFR1D3DSjBtNTxWalk+xIu9QHNnO4VOmC3FuPR/aIIIZxHob21XxbNv7/i NwQnWAngIwZrk9CXMeBgCJHrKDYnfgwOSONmYAXb3D5aliHMv8U+QDdKHKkb9RHLQp7i QuVedyadcUweRJOo3LTqWJI3sk3e+qRPUS62VJQ4u8+NWyOvUDuzGnHOsp2rM4/j4DKe EB1IcEf5HgbmtS1VU3WW96vMq/nXpkhRPbn6eom+CpQ/VcGh/qe9CH6rJTmYk4jjrIuB tdEw== 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=nqfyMmuFplt+OKSiWdQTowYskHGoACdqgxkdFV3XPZE=; b=rOGXFjqLi4Pw6Jf9TGAn1ABobYi4yNgTMuYlYT4QUskY8YuK3zOwoGqQBTXxIrdSst sIMNqimpnZ6gVztKbhIUqINaCPUag+HpY4RJhaArsEs4D5XC3EKQYlWi5rkqFaPbJA9K yUDMupfqeNCOa09zrR7zy0cjbS/3+dR5HlS2RDA73RobuhFzFf/G0loDcZmt94m++wiR Ics7iJN/BQvv8hPoXaIWigDJMLXGTqhR9UHnY4SGo5jjbDlRx4YmG7C0Pu1ZRft6GbJ5 7ynaSglJp0tErUIo/Qj4T195eyRSHqGs0XvkrbgoCoIvm/nq47ebq2sRE9pPSFkVpaJ7 Ysgw== X-Gm-Message-State: AKGB3mI/wbn/uWl139CdCRNfwWO4Y+1g8krWRCIJLLSEGRd+uM+hKrIQ /ZeeQty+MoDlWPIHocQjawza+eri X-Google-Smtp-Source: ACJfBovElQeXHO+s7Mzq2q/YPkGAF/AnVVAS+w9HBaFvP+DlDj4leU/UNgJMtzOgoxUuFluTFSHX7Q== X-Received: by 10.36.219.195 with SMTP id c186mr3674697itg.61.1515178646060; Fri, 05 Jan 2018 10:57:26 -0800 (PST) Received: from ebiggers-linuxstation.kir.corp.google.com ([100.66.175.88]) by smtp.gmail.com with ESMTPSA id j68sm3863899iod.53.2018.01.05.10.57.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 10:57:25 -0800 (PST) From: Eric Biggers To: linux-fscrypt@vger.kernel.org, "Theodore Y . Ts'o" Cc: linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, Eric Biggers Subject: [PATCH v2 03/11] fscrypt: move fscrypt_info_cachep declaration to fscrypt_private.h Date: Fri, 5 Jan 2018 10:44:54 -0800 Message-Id: <20180105184502.48473-4-ebiggers3@gmail.com> X-Mailer: git-send-email 2.16.0.rc0.223.g4a4ac83678-goog In-Reply-To: <20180105184502.48473-1-ebiggers3@gmail.com> References: <20180105184502.48473-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 *,