diff options
author | linke li <lilinke99@qq.com> | 2024-04-03 05:10:08 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-04-09 13:29:03 +0300 |
commit | 8bfb40be31ddea0cb4664b352e1797cfe6c91976 (patch) | |
tree | d111fa3580671ccb8b267740bc4dedfa9341d60f /Documentation/tee | |
parent | 886b94d25a8eba4c42634dddc3cbfd6391a24d25 (diff) | |
download | linux-8bfb40be31ddea0cb4664b352e1797cfe6c91976.tar.xz |
fs/dcache: Re-use value stored to dentry->d_flags instead of re-reading
Currently, the __d_clear_type_and_inode() writes the value flags to
dentry->d_flags, then immediately re-reads it in order to use it in a if
statement. This re-read is useless because no other update to
dentry->d_flags can occur at this point.
This commit therefore re-use flags in the if statement instead of
re-reading dentry->d_flags.
Signed-off-by: linke li <lilinke99@qq.com>
Link: https://lore.kernel.org/r/tencent_5E187BD0A61BA28605E85405F15228254D0A@qq.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'Documentation/tee')
0 files changed, 0 insertions, 0 deletions