fscrypt: switch from ->is_encrypted() to IS_ENCRYPTED()
authorEric Biggers <ebiggers@google.com>
Mon, 9 Oct 2017 19:15:36 +0000 (12:15 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 5 Jan 2018 00:17:27 +0000 (16:17 -0800)
commit2edb5df148b354ce6f84a892dc0079117c447ab2
treeab380cee0367118ee357f825fb476d1aefbf2091
parentcde1fbb02dbf3725f62305d2c5640c96624f6685
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