]> git.baikalelectronics.ru Git - kernel.git/commit
split read_seqretry_or_unlock(), convert d_walk() to resulting primitives
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Sep 2013 19:22:25 +0000 (15:22 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Sep 2013 19:22:25 +0000 (15:22 -0400)
commit0540e76003b11adea148e9f495ae9a25a8145848
tree515af9f0288fbdee85f2ba1fdc2d20e088a1fb17
parent1a826fafe77ca428b2d66718feeba1e85678f165
split read_seqretry_or_unlock(), convert d_walk() to resulting primitives

Separate "check if we need to retry" from "unlock if we are done and
had seq_writelock"; that allows to use these guys in d_walk(), where
we need to recheck every time we ascend back to parent, but do *not*
want to unlock until the very end.  Lift rcu_read_lock/rcu_read_unlock
out into callers.

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