]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: reserve never used bits from bkey.high
authorColy Li <colyli@suse.de>
Wed, 20 Oct 2021 14:38:06 +0000 (22:38 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Oct 2021 14:40:54 +0000 (08:40 -0600)
commit2872fc4a26791a1e15ce267f2df453a8b2f708f1
tree6edf956ebff92f08c7ad8e35a4c10920163b1c4d
parenteae3ec589c4e67e7849951c89b144034dca3c3ee
bcache: reserve never used bits from bkey.high

There sre 3 bits in member high of struct bkey are never used, and no
plan to support them in future,
- HEADER_SIZE, start at bit 58, length 2 bits
- KEY_PINNED,  start at bit 55, length 1 bit

No any kernel code, or user space tool references or accesses the three
bits. Therefore it is possible and feasible to reserve the valuable bits
from bkey.high. They can be used in future for other purpose.

Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20211020143812.6403-3-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/bcache.h