]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
infiniband: don't bother with d_delete()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 27 Jul 2019 20:14:37 +0000 (16:14 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 3 Sep 2019 13:30:55 +0000 (09:30 -0400)
Dentries are never retained there; d_delete() + dput() is no
different from d_drop() + dput().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/infiniband/hw/qib/qib_fs.c

index 41a569558a1579908e8fdf0f5164d8c703ddd7b3..e336d778e076eddb3d56c37b6fd33be0de87b050 100644 (file)
@@ -493,7 +493,7 @@ static int remove_device_files(struct super_block *sb,
        remove_file(dir, "flash");
        inode_unlock(d_inode(dir));
        ret = simple_rmdir(d_inode(root), dir);
-       d_delete(dir);
+       d_drop(dir);
        dput(dir);
 
 bail: