ext4/fscrypto: avoid RCU lookup in d_revalidate
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 12 Apr 2016 23:05:36 +0000 (16:05 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 13 Apr 2016 03:01:35 +0000 (20:01 -0700)
commit03a8bb0e53d9562276045bdfcf2b5de2e4cff5a1
tree558c4c5fe4471d2570a23bb16dbe85c8ee0999ed
parentb32e4482aadfd1322357f46d4ed8a990603664d9
ext4/fscrypto: avoid RCU lookup in d_revalidate

As Al pointed, d_revalidate should return RCU lookup before using d_inode.
This was originally introduced by:
commit 34286d666230 ("fs: rcu-walk aware d_revalidate method").

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: stable <stable@vger.kernel.org>
fs/crypto/crypto.c
fs/ext4/crypto.c