summaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang-test.cpp
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2022-04-01 09:25:17 +0300
committerSteve French <stfrench@microsoft.com>2022-04-08 17:03:43 +0300
commitd788e51636462e61c6883f7d96b07b06bc291650 (patch)
tree35fb1105dc8bb11bc3258da3fa3f66f26d1cdbff /tools/perf/util/c++/clang-test.cpp
parent994fd530a512597ffcd713b0f6d5bc916c5698f0 (diff)
downloadlinux-d788e51636462e61c6883f7d96b07b06bc291650.tar.xz
cifs: release cached dentries only if mount is complete
During cifs_kill_sb, we first dput all the dentries that we have cached. However this function can also get called for mount failures. So dput the cached dentries only if the filesystem mount is complete. i.e. cifs_sb->root is populated. Fixes: 5e9c89d43fa6 ("cifs: Grab a reference for the dentry of the cached directory during the lifetime of the cache") Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
0 files changed, 0 insertions, 0 deletions