Commit ffaa6d5a authored by Prasanna Meda's avatar Prasanna Meda Committed by Linus Torvalds

[PATCH] dcache: is_subdir missed reset after seqretry

dcache: is_subdir forgot to reset the result after seqretry.
Signed-Off-by: default avatarPrasanna Meda <pmeda@akamai.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ea8924f7
......@@ -1532,7 +1532,6 @@ int is_subdir(struct dentry * new_dentry, struct dentry * old_dentry)
struct dentry * saved = new_dentry;
unsigned long seq;
result = 0;
/* need rcu_readlock to protect against the d_parent trashing due to
* d_move
*/
......@@ -1540,6 +1539,7 @@ int is_subdir(struct dentry * new_dentry, struct dentry * old_dentry)
do {
/* for restarting inner loop in case of seq retry */
new_dentry = saved;
result = 0;
seq = read_seqbegin(&rename_lock);
for (;;) {
if (new_dentry != old_dentry) {
......
Markdown is supported
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