Skip to content

Commit

Permalink
infiniband: don't bother with d_delete()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro committed Sep 3, 2019
1 parent 29dfeb0 commit 6effcab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/qib/qib_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6effcab

Please sign in to comment.