]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fscrypt: split supp and notsupp declarations into their own headers
authorEric Biggers <ebiggers@google.com>
Tue, 24 Jan 2017 18:58:06 +0000 (10:58 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 7 Feb 2017 04:26:43 +0000 (23:26 -0500)
commit46f47e48008b63f5fd3a3bad8b79ba1a89fb625f
tree6e0c899bf4c926b9277c95ee2e2c5c8834621a8b
parent02680b31a0b3757e121d27223b6fe21778f52408
fscrypt: split supp and notsupp declarations into their own headers

Previously, each filesystem configured without encryption support would
define all the public fscrypt functions to their notsupp_* stubs.  This
list of #defines had to be updated in every filesystem whenever a change
was made to the public fscrypt functions.  To make things more
maintainable now that we have three filesystems using fscrypt, split the
old header fscrypto.h into several new headers.  fscrypt_supp.h contains
the real declarations and is included by filesystems when configured
with encryption support, whereas fscrypt_notsupp.h contains the inline
stubs and is included by filesystems when configured without encryption
support.  fscrypt_common.h contains common declarations needed by both.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
MAINTAINERS
fs/crypto/fscrypt_private.h
fs/ext4/ext4.h
fs/ext4/page-io.c
fs/f2fs/f2fs.h
fs/ubifs/ubifs.h
include/linux/fscrypt_common.h [new file with mode: 0644]
include/linux/fscrypt_notsupp.h [new file with mode: 0644]
include/linux/fscrypt_supp.h [new file with mode: 0644]
include/linux/fscrypto.h [deleted file]