Skip to content
Unverified Commit 7d84d1b9 authored by Christian Brauner's avatar Christian Brauner
Browse files

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: default avatarChristian Brauner <brauner@kernel.org>
parent 3e327154
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