diff options
author | 2021-03-01 08:01:54 -0500 | |
---|---|---|
committer | 2021-04-27 23:52:23 +0200 | |
commit | aa60cfc3f7ee32766766f71e6bfbea963b4f94bc (patch) | |
tree | eab5168f12d68b2371ace2eb91a5eea95e560d7d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ceph: don't clobber i_snap_caps on non-I_NEW inode (diff) | |
download | wireguard-linux-aa60cfc3f7ee32766766f71e6bfbea963b4f94bc.tar.xz wireguard-linux-aa60cfc3f7ee32766766f71e6bfbea963b4f94bc.zip |
ceph: don't use d_add in ceph_handle_snapdir
It's possible ceph_get_snapdir could end up finding a (disconnected)
inode that already exists in the cache. Change the prototype for
ceph_handle_snapdir to return a dentry pointer and have it use
d_splice_alias so we don't end up with an aliased dentry in the cache.
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions