[PATCH] staging: erofs: set sb->s_root to NULL when failing from __getname()

Chao Yu yuchao0 at huawei.com
Tue May 7 11:41:41 AEST 2019


On 2019/5/6 19:01, Chengguang Xu wrote:
> Set sb->s_root to NULL when failing from __getname(),
> so that we can avoid double dput and unnecessary operations
> in generic_shutdown_super().
> 
> Signed-off-by: Chengguang Xu <cgxu519 at gmail.com>

Reviewed-by: Chao Yu <yuchao0 at huawei.com>

Thanks,


More information about the Linux-erofs mailing list