summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_flat.c
diff options
context:
space:
mode:
authorKaixu Xia <kaixuxia@tencent.com>2020-10-10 16:10:16 +0800
committerTheodore Ts'o <tytso@mit.edu>2020-10-18 10:37:26 -0400
commitd3e7d20befd9d07db2955015a3f294c0a0a771d3 (patch)
tree2ffe9d71f346dc1afbc24217c493b8097822c69d /fs/binfmt_flat.c
parentd1e18b8824dd50cff255e6cecf515ea598eaf9f0 (diff)
downloadlinux-d3e7d20befd9d07db2955015a3f294c0a0a771d3.tar.bz2
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: Kaixu Xia <kaixuxia@tencent.com> Reviewed-by: Lukas Czerner <lczerner@redhat.com> Link: https://lore.kernel.org/r/1602317416-1260-1-git-send-email-kaixuxia@tencent.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/binfmt_flat.c')
0 files changed, 0 insertions, 0 deletions