Re: [PATCH v11 3/8] fork: add USER_WORKER flag to not dup/clone files

From: Linus Torvalds
Date: Thu Feb 02 2023 - 19:16:37 EST


On Thu, Feb 2, 2023 at 3:25 PM Mike Christie
<michael.christie@xxxxxxxxxx> wrote:
>
> - retval = copy_files(clone_flags, p);
> + retval = copy_files(clone_flags, p,
> + args->worker_flags & USER_WORKER_NO_FILES);

Just to hit the previous email comment home, adding just another
bitfield case would have made this patch simpler, and this would just
be

retval = copy_files(clone_flags, p, args->no_files);

which seems more legible too.

Linus