mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
vfs: Remove unnecessary calls of check_submounts_and_drop
Now that check_submounts_and_drop can not fail and is called from d_invalidate there is no longer a need to call check_submounts_and_drom from filesystem d_revalidate methods so remove it. 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:
parent
8ed936b567
commit
9b053f3207
5 changed files with 0 additions and 26 deletions
|
|
@ -669,7 +669,6 @@ static int afs_d_revalidate(struct dentry *dentry, unsigned int flags)
|
|||
|
||||
out_valid:
|
||||
dentry->d_fsdata = dir_version;
|
||||
out_skip:
|
||||
dput(parent);
|
||||
key_put(key);
|
||||
_leave(" = 1 [valid]");
|
||||
|
|
@ -682,10 +681,6 @@ not_found:
|
|||
spin_unlock(&dentry->d_lock);
|
||||
|
||||
out_bad:
|
||||
/* don't unhash if we have submounts */
|
||||
if (check_submounts_and_drop(dentry) != 0)
|
||||
goto out_skip;
|
||||
|
||||
_debug("dropping dentry %s/%s",
|
||||
parent->d_name.name, dentry->d_name.name);
|
||||
dput(parent);
|
||||
|
|
|
|||
Loading…
Reference in a new issue