vfs: Remove d_drop calls from d_revalidate implementations

Now that d_invalidate always succeeds it is not longer necessary or
desirable to hard code d_drop calls into filesystem specific
d_revalidate implementations.

Remove the unnecessary d_drop calls and rely on d_invalidate
to drop the dentries.  Using d_invalidate ensures that paths
to mount points will not be dropped.

Reviewed-by: Miklos Szeredi <[email protected]>
Signed-off-by: "Eric W. Biederman" <[email protected]>
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Eric W. Biederman 2014-02-13 10:19:10 -08:00 • committed by Al Viro
commit c143c2333c
3 changed files with 0 additions and 7 deletions

View file

@ -1590,7 +1590,6 @@ int pid_revalidate(struct dentry *dentry, unsigned int flags)
put_task_struct(task);
return 1;
}
d_drop(dentry);
return 0;
}
@ -1727,9 +1726,6 @@ out:
put_task_struct(task);
out_notask:
if (status <= 0)
d_drop(dentry);
return status;
}

View file

@ -129,8 +129,6 @@ static int tid_fd_revalidate(struct dentry *dentry, unsigned int flags)
}
put_task_struct(task);
}
d_drop(dentry);
return 0;
}