diff options
author | 2023-08-06 14:49:35 +0200 | |
---|---|---|
committer | 2023-08-06 15:08:36 +0200 | |
commit | 7d84d1b9af6366aa9df1b523bdb7e002372e38d0 (patch) | |
tree | 450616a5bc325b21b528fa6928294e69f8ffe733 /scripts/generate_rust_analyzer.py | |
parent | vfs: get rid of old '->iterate' directory operation (diff) | |
download | wireguard-linux-7d84d1b9af6366aa9df1b523bdb7e002372e38d0.tar.xz wireguard-linux-7d84d1b9af6366aa9df1b523bdb7e002372e38d0.zip |
fs: rely on ->iterate_shared to determine f_pos locking
Now that we removed ->iterate we don't need to check for either
->iterate or ->iterate_shared in file_needs_f_pos_lock(). Simply check
for ->iterate_shared instead. This will tell us whether we need to
unconditionally take the lock. Not just does it allow us to avoid
checking f_inode's mode it also actually clearly shows that we're
locking because of readdir.
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions