diff options
author | Gao Xiang <gaoxiang25@huawei.com> | 2018-11-03 17:23:56 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-05 15:32:45 +0100 |
commit | e9c892465583c8f42d61fafe30970d36580925df (patch) | |
tree | df78b43081d915c49c590afc8872d568ed99c8b3 /drivers/staging/erofs | |
parent | staging: rtl8723bs: fix typo in function name rtw_sctx_chk_waring_status (diff) | |
download | linux-dev-e9c892465583c8f42d61fafe30970d36580925df.tar.xz linux-dev-e9c892465583c8f42d61fafe30970d36580925df.zip |
staging: erofs: remove the redundant d_rehash() for the root dentry
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>
Diffstat (limited to 'drivers/staging/erofs')
-rw-r--r-- | drivers/staging/erofs/super.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/erofs/super.c b/drivers/staging/erofs/super.c index f69e619807a1..1ab3553c839b 100644 --- a/drivers/staging/erofs/super.c +++ b/drivers/staging/erofs/super.c @@ -442,12 +442,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); |