]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fscrypt: eliminate ->prepare_context() operation
authorEric Biggers <ebiggers@google.com>
Wed, 22 Feb 2017 21:25:14 +0000 (13:25 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 15 Mar 2017 18:15:47 +0000 (14:15 -0400)
commit94840e3c802daa1a62985957f36ac48faf8ceedd
tree09901080ff440233d2c092bd51a2aa296a2d9710
parent1b53cf9815bb4744958d41f3795d5d5a1d365e2d
fscrypt: eliminate ->prepare_context() operation

The only use of the ->prepare_context() fscrypt operation was to allow
ext4 to evict inline data from the inode before ->set_context().
However, there is no reason why this cannot be done as simply the first
step in ->set_context(), and in fact it makes more sense to do it that
way because then the policy modes and flags get validated before any
real work is done.  Therefore, merge ext4_prepare_context() into
ext4_set_context(), and remove ->prepare_context().

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/policy.c
fs/ext4/super.c
include/linux/fscrypt_common.h