commit | d293c3e4e07334d761c88df9d68b3aa800a83dd9 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Mon Oct 09 12:15:39 2017 -0700 |
committer | Theodore Ts'o <tytso@mit.edu> | Wed Oct 18 19:52:37 2017 -0400 |
tree | 55b1b5b5befe49d2bc031fd6fb6fbc6aa5fcd0fc | |
parent | ffcc41829ae043d0830bcd4536812fec7e098d93 [diff] |
fscrypt: new helper function - fscrypt_require_key() Add a helper function which checks if an inode is encrypted, and if so, tries to set up its encryption key. This is a pattern which is duplicated in multiple places in each of ext4, f2fs, and ubifs --- for example, when a regular file is asked to be opened or truncated. Acked-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>