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)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 12 Jan 2018 03:06:18 +0000 (22:06 -0500)
commit1493651b53b4811960b6220a340929074b58a55b
tree75d08b21572cfab9f5e86bb4a5a3ed27a23bb3d2
parent542060c02cdb5c0740fd7156651463e321a859a3
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