1
0
Fork 0

infiniband: don't bother with d_delete()

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>
alistair/sunxi64-5.4-dsi
Al Viro 2019-07-27 16:14:37 -04:00
parent 29dfeb0b6a
commit 6effcab4da
1 changed files with 1 additions and 1 deletions

View 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: