Message ID | 37e3c459-0de0-3d23-11d2-7d7d39e5e941@kernel.dk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [GIT,PULL] Support for 64-bit data integrity | expand |
On Fri, Mar 25, 2022 at 8:18 AM Jens Axboe <axboe@kernel.dk> wrote: > > This pull request adds support for 64-bit data integrity in the block > layer and in NVMe. I've pulled this, but people - please don't do silly things like this: > Keith Busch (9): > linux/kernel: introduce lower_48_bits function There is *NO* excuse for adding this completely trivial and pointless function to a core kernel header file. It isn't generic enough to make sense. "48" just isn't a common enough number. Maybe It isn't *complex* enough to make sense. It isn't even clarifying the code. Honestly, the advantage of writing seed = lower_48_bits(iter->seed); over just writing it out the usual way, or using one of our existing helpers like seed = iter->seed & GENMASK_ULL(47,0); is just not there. And it damn well shouldn't be in some <linux/kernel.h> header file. If you ABSOLUTELY need to have it, put it in some NVMe-specific header file where it (maybe) belongs.
On Sat, Mar 26, 2022 at 12:14 PM Linus Torvalds <torvalds@linux-foundation.org> wrote: > > It isn't generic enough to make sense. "48" just isn't a common enough number. > > Maybe This got sent out early by mistake. That "Maybe" was supposed to continue Maybe a generic mask implementation could be useful, but not this special case. or similar. Linus
The pull request you sent on Fri, 25 Mar 2022 09:18:35 -0600:
> git://git.kernel.dk/linux-block.git tags/for-5.18/64bit-pi-2022-03-25
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/3f7282139fe1594be464b90141d56738e7a0ea8a
Thank you!