fscrypt: Use correct index in decrypt path.
authorDavid Gstir <david@sigma-star.at>
Tue, 6 Dec 2016 22:53:53 +0000 (23:53 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 11 Dec 2016 21:26:10 +0000 (16:26 -0500)
commite550c16c8aab95c7996b0c864d5fcedc2c430a43
tree9d6cfced5217cfb73216d883385795a7b4983bd9
parent41d5319af3368127b55f6587f1c747dd6a7b9b04
fscrypt: Use correct index in decrypt path.

Actually use the fs-provided index instead of always using page->index
which is only set for page-cache pages.

Fixes: 9c4bb8a3a9b4 ("fscrypt: Let fs select encryption index/tweak")
Signed-off-by: David Gstir <david@sigma-star.at>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/crypto.c