bcachefs: clean up some dead fallocate code
authorBrian Foster <bfoster@redhat.com>
Tue, 19 Dec 2023 14:02:15 +0000 (09:02 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:41 +0000 (11:47 -0500)
commitd8d819580ae02ba37388769b72f86cb4432a1cb9
treeb0a021228cd7587c57ceb28cc68ca64d82d80f3d
parenta7dc10ce689a6224c1601d5d2e4ca57dd8cce9f6
bcachefs: clean up some dead fallocate code

The have_reservation local variable in bch2_extent_fallocate() is
initialized to false and set to true further down in the function.
Between this two points, one branch of code checks for negative
value and one for positive, and nothing ever checks the variable
after it is set to true. Clean up some of the unnecessary logic and
code.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io_misc.c