]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Reserve 8 bits in bch_reflink_p
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 29 Oct 2024 03:43:16 +0000 (23:43 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:17 +0000 (01:36 -0500)
commit61f854da4cba9708dd54f45b0e19ded6ffd10d01
tree1e2ac3c0e1fc64f62c1f847f032d7ad4c430ab0a
parenteb73e7773fd665c6b2f26e8b5057197ad6794f50
bcachefs: Reserve 8 bits in bch_reflink_p

Better repair for reflink pointers, as well as propagating new inode
options to indirect extents, are going to require a few extra bits
bch_reflink_p: so claim a few from the high end of the destination
index.

Also add some missing bounds checking.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/extent_update.c
fs/bcachefs/extents.c
fs/bcachefs/io_read.c
fs/bcachefs/reflink.c
fs/bcachefs/reflink_format.h