]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ufs: take the handling of free block counters into a helper
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 13 Dec 2023 19:23:49 +0000 (14:23 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 18 Oct 2024 21:35:31 +0000 (17:35 -0400)
commit6b103cc0ba58c680ab4e59dfa2fca4ceedfb5495
treee0dd86ad1921fd6e677c4460ab9f96f64f4b06f9
parent64f30e80d653c4d5aa0a7f1390789348af0cf8f2
ufs: take the handling of free block counters into a helper

There are 3 places where those counters (many and varied...) are
adjusted - when we are freeing fragments and get an entire block
freed, when we are freeing blocks and (in opposite direction) when
we are grabbing a block.  The logics is identical (modulo the
sign of adjustment) in all three; better take it into a helper -
less duplication and less clutter in the callers that way.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ufs/balloc.c