aboutsummaryrefslogtreecommitdiff
path: root/include/linux/vcodec
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@google.com>2015-05-21 11:24:12 -0400
committerMister Oyster <oysterized@gmail.com>2017-05-27 19:40:03 +0200
commitbc6023c2c23eacc1ab97586038fc2764fd38f760 (patch)
tree543be2e342f94142a03f4886be1e045cc9841dee /include/linux/vcodec
parenta274d938a8d4d24880b2007ed816693916e16cdb (diff)
ext4 crypto: use per-inode tfm structure
As suggested by Herbert Xu, we shouldn't allocate a new tfm each time we read or write a page. Instead we can use a single tfm hanging off the inode's crypt_info structure for all of our encryption needs for that inode, since the tfm can be used by multiple crypto requests in parallel. Also use cmpxchg() to avoid races that could result in crypt_info structure getting doubly allocated or doubly freed. Change-Id: I4ae5c07d0e5d99ec1e26eeb49d833c4a284d9a5f Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Theodore Ts'o <tytso@google.com>
Diffstat (limited to 'include/linux/vcodec')
0 files changed, 0 insertions, 0 deletions