fscrypt: split fscrypt_dummy_context_enabled() into supp/notsupp versions
authorEric Biggers <ebiggers@google.com>
Fri, 5 Jan 2018 18:44:56 +0000 (10:44 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 8 Apr 2018 09:40:02 +0000 (02:40 -0700)
commit2fa9a1f9268a41f8fc525b429bb03059e31110de
tree02799fa82393d1f47b0111fece4af5abe2264432
parente298b5de1ccae7bf2ee9f8c0b5ef6518435177f1
fscrypt: split fscrypt_dummy_context_enabled() into supp/notsupp versions

fscrypt_dummy_context_enabled() accesses ->s_cop, which now is only set
when the filesystem is built with encryption support.  This didn't
actually matter because no filesystems called it.  However, it will
start being used soon, so fix it by moving it from fscrypt.h to
fscrypt_supp.h and stubbing it out in fscrypt_notsupp.h.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
include/linux/fscrypt.h
include/linux/fscrypt_notsupp.h
include/linux/fscrypt_supp.h