Skip to content
Commit d3e7d20b authored by Kaixu Xia's avatar Kaixu Xia Committed by Theodore Ts'o
Browse files

ext4: use the normal helper to get the actual inode



Here we use the READ_ONCE to fix race conditions in ->d_compare() and
->d_hash() when they are called in RCU-walk mode, seems we can use
the normal helper d_inode_rcu() to get the actual inode.

Signed-off-by: default avatarKaixu Xia <kaixuxia@tencent.com>
Reviewed-by: default avatarLukas Czerner <lczerner@redhat.com>
Link: https://lore.kernel.org/r/1602317416-1260-1-git-send-email-kaixuxia@tencent.com


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent d1e18b88
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment