OSDN Git Service

non-RCU analogue of the previous commit
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Feb 2020 00:19:05 +0000 (19:19 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 2 Apr 2020 05:09:22 +0000 (01:09 -0400)
commit2aa38470853a65dc9b1b4bd0989d34cd3fc57ebd
treed445f35666a55d6af1cfbc0b105f47632975c750
parent7ef482fa65513b18eed05a5c5f00413aad137810
non-RCU analogue of the previous commit

new helper: choose_mountpoint().  Wrapper around choose_mountpoint_rcu(),
similar to lookup_mnt() vs. __lookup_mnt().  follow_dotdot() switched to
it.  Now we don't grab mount_lock exclusive anymore; note that the
primitive used non-RCU mount traversals in other direction (lookup_mnt())
doesn't bother with that either - it uses mount_lock seqcount instead.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c