OSDN Git Service

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:08:38 +0000 (02:08 -0700)
commit7ed178bc8ae9eb13c0a0a155688e2a7187afd2bb
treefc142f28e7a69ed6fd3c10e85bb817c5449aaa1e
parent3f16e09dadfbf319fe4a71b61f6049a83d7c277c
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