Re: [PATCH 37/39] memcg_write_event_control(): switch to CLASS(fd)

Christian Brauner
2024-08-07T10:47:16Z

On Tue, Jul 30, 2024 at 01:16:23AM GMT, viro@kernel.org wrote:
> From: Al Viro <viro@zeniv.linux.org.uk>
>
> some reordering required - take both fdget() to the point before
> the allocations, with matching move of fdput() to the very end
> of failure exit(s); after that it converts trivially.
>
> simplify the cleanups that involve css_put(), while we are at it...
>
> [stuff moved in mainline]
>
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> ---

Reviewed-by: Christian Brauner <brauner@kernel.org>