ubifs: use IS_ENCRYPTED() instead of ubifs_crypt_is_encrypted()
authorEric Biggers <ebiggers@google.com>
Mon, 9 Dec 2019 21:27:21 +0000 (13:27 -0800)
committerEric Biggers <ebiggers@google.com>
Mon, 20 Jan 2020 18:43:46 +0000 (10:43 -0800)
commit50d9fad73a45a78f8b974b46307712556c9a42d3
tree9145deb03cd0664bc8156daaf56dce847de87d88
parent2d8f7f119b0b2ce5e7ff0e8024b0763bf42b99c9
ubifs: use IS_ENCRYPTED() instead of ubifs_crypt_is_encrypted()

There's no need for the ubifs_crypt_is_encrypted() function anymore.
Just use IS_ENCRYPTED() instead, like ext4 and f2fs do.  IS_ENCRYPTED()
checks the VFS-level flag instead of the UBIFS-specific flag, but it
shouldn't change any behavior since the flags are kept in sync.

Link: https://lore.kernel.org/r/20191209212721.244396-1-ebiggers@kernel.org
Acked-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/ubifs/dir.c
fs/ubifs/file.c
fs/ubifs/journal.c
fs/ubifs/ubifs.h