Re: [PATCH] fix bitmap corruption on close_range() with CLOSE_RANGE_UNSHARE

Linus Torvalds
2024-08-04T15:18:34Z

On Sat, 3 Aug 2024 at 20:47, Al Viro <viro@zeniv.linux.org.uk> wrote:
>
> bitmap_copy_and_extend(nfdt->open_fds, ofdt->open_fds,
> copy_words * BITS_PER_LONG, nwords * BITS_PER_LONG);

Ok, thinking about it, I like this interface, since it looks like the
compiler would see that it's in BITS_PER_LONG chunks if we inline it
and decide it's important.

So make it so.

Linus