Re: [PATCH V3 2/6] erofs: code clean up for fscache

From: JeffleXu
Date: Thu Sep 15 2022 - 02:46:25 EST




On 9/14/22 6:50 PM, Jia Zhu wrote:
>
> @@ -485,13 +481,13 @@ void erofs_fscache_unregister_cookie(struct erofs_fscache **fscache)
> ctx->inode = NULL;

- ctx->cookie = NULL;
- ctx->inode = NULL;

I think the above two lines can also be deleted. After all @ctx will be
freed soon.

>
> kfree(ctx);
> - *fscache = NULL;
> }
>


--
Thanks,
Jingbo