mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
staging: erofs: remove the redundant d_rehash() for the root dentry
commit e9c8924655 upstream.
There is actually no need at all to d_rehash() for the root dentry
as Al pointed out, fix it.
Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
017f7fd75b
commit
398102f64a
@@ -404,12 +404,6 @@ static int erofs_read_super(struct super_block *sb,
|
||||
|
||||
erofs_register_super(sb);
|
||||
|
||||
/*
|
||||
* We already have a positive dentry, which was instantiated
|
||||
* by d_make_root. Just need to d_rehash it.
|
||||
*/
|
||||
d_rehash(sb->s_root);
|
||||
|
||||
if (!silent)
|
||||
infoln("mounted on %s with opts: %s.", dev_name,
|
||||
(char *)data);
|
||||
|
||||
Reference in New Issue
Block a user