]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
fscrypt: switch from ->is_encrypted() to IS_ENCRYPTED()
authorEric Biggers <ebiggers@google.com>
Mon, 9 Oct 2017 19:15:36 +0000 (12:15 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 18 Oct 2017 23:52:36 +0000 (19:52 -0400)
commite0428a266d5a29a3c2eec287fcd49be9e8e2468e
tree0ecedc8aa9793db447da6abdb31506229f582a50
parent2ee6a576be56427209d370d8a511d49340c84139
fscrypt: switch from ->is_encrypted() to IS_ENCRYPTED()

IS_ENCRYPTED() now gives the same information as
i_sb->s_cop->is_encrypted() but is more efficient, since IS_ENCRYPTED()
is just a simple flag check.  Prepare to remove ->is_encrypted() by
switching all callers to IS_ENCRYPTED().

Acked-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/crypto.c
fs/crypto/fname.c
fs/crypto/keyinfo.c
fs/crypto/policy.c
include/linux/fscrypt_notsupp.h