X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fsysfs%2Fdir.c;h=477c66d4e2a85a4a81962993feda816ee1e2a76f;hb=40216baa0101ec7ac9ce7c4f4f4d684f3a85eb93;hp=4d83cedb9fcb6a98b784bb7e5d67472b9e96e289;hpb=31f7c3a688f75bceaf2fd009efc489659ad6aa61;p=karo-tx-linux.git diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index 4d83cedb9fcb..477c66d4e2a8 100644 --- a/fs/sysfs/dir.c +++ b/fs/sysfs/dir.c @@ -327,7 +327,6 @@ static int sysfs_dentry_revalidate(struct dentry *dentry, unsigned int flags) } mutex_unlock(&sysfs_mutex); -out_valid: return 1; out_bad: /* Remove the dentry from the dcache hashes. @@ -341,13 +340,7 @@ out_bad: * to the dcache hashes. */ mutex_unlock(&sysfs_mutex); - - /* If we have submounts we must allow the vfs caches - * to lie about the state of the filesystem to prevent - * leaks and other nasty things. - */ - if (check_submounts_and_drop(dentry) != 0) - goto out_valid; + shrink_submounts_and_drop(dentry); return 0; }