summaryrefslogtreecommitdiff
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2017-10-09 12:15:34 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2018-01-04 16:32:32 -0800
commitff0a3dbc9392233e967b54534459c68d91e7963e (patch)
tree0f965490e896189cc4f901ffc63830ddda7e039c /include/linux/fs.h
parentbc4a61c60bea8d5e7468885ef7b7a41ba16b1b96 (diff)
fscrypt: clean up include file mess
Filesystems have to include different header files based on whether they are compiled with encryption support or not. That's nasty and messy. Instead, rationalise the headers so we have a single include fscrypt.h and let it decide what internal implementation to include based on the __FS_HAS_ENCRYPTION define. Filesystems set __FS_HAS_ENCRYPTION to 1 before including linux/fscrypt.h if they are built with encryption support. Otherwise, they must set __FS_HAS_ENCRYPTION to 0. Add guards to prevent fscrypt_supp.h and fscrypt_notsupp.h from being directly included by filesystems. Signed-off-by: Dave Chinner <dchinner@redhat.com> [EB: use 1 and 0 rather than defined/undefined] Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include/linux/fs.h')
0 files changed, 0 insertions, 0 deletions