add patch create-function-to-read-journal-inode
[ext4-patch-queue.git] / fscrypto-remove-unnecessary-includes
blob23f1ccf3617dbdcc82ec5e453a4a7c6510773901
1 fscrypto: remove unnecessary includes
3 From: Eric Biggers <ebiggers@google.com>
5 This patch removes some #includes that are clearly not needed, such as a
6 reference to ecryptfs, which is unrelated to the new filesystem
7 encryption code.
9 Signed-off-by: Eric Biggers <ebiggers@google.com>
10 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
11 ---
12  fs/crypto/crypto.c  | 1 -
13  fs/crypto/fname.c   | 2 --
14  fs/crypto/keyinfo.c | 3 ---
15  3 files changed, 6 deletions(-)
17 diff --git a/fs/crypto/crypto.c b/fs/crypto/crypto.c
18 index c502c11..7c39eab 100644
19 --- a/fs/crypto/crypto.c
20 +++ b/fs/crypto/crypto.c
21 @@ -28,7 +28,6 @@
22  #include <linux/dcache.h>
23  #include <linux/namei.h>
24  #include <linux/fscrypto.h>
25 -#include <linux/ecryptfs.h>
27  static unsigned int num_prealloc_crypto_pages = 32;
28  static unsigned int num_prealloc_crypto_ctxs = 128;
29 diff --git a/fs/crypto/fname.c b/fs/crypto/fname.c
30 index 5d6d491..3108806 100644
31 --- a/fs/crypto/fname.c
32 +++ b/fs/crypto/fname.c
33 @@ -10,8 +10,6 @@
34   * This has not yet undergone a rigorous security audit.
35   */
37 -#include <keys/encrypted-type.h>
38 -#include <keys/user-type.h>
39  #include <linux/scatterlist.h>
40  #include <linux/ratelimit.h>
41  #include <linux/fscrypto.h>
42 diff --git a/fs/crypto/keyinfo.c b/fs/crypto/keyinfo.c
43 index 1ac263e..58b1c82 100644
44 --- a/fs/crypto/keyinfo.c
45 +++ b/fs/crypto/keyinfo.c
46 @@ -8,11 +8,8 @@
47   * Written by Michael Halcrow, Ildar Muslukhov, and Uday Savagaonkar, 2015.
48   */
50 -#include <keys/encrypted-type.h>
51  #include <keys/user-type.h>
52 -#include <linux/random.h>
53  #include <linux/scatterlist.h>
54 -#include <uapi/linux/keyctl.h>
55  #include <linux/fscrypto.h>
57  static void derive_crypt_complete(struct crypto_async_request *req, int rc)