aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2023-12-13 19:23:49 +0000
committerAl Viro <[email protected]>2024-10-18 21:35:31 +0000
commit6b103cc0ba58c680ab4e59dfa2fca4ceedfb5495 (patch)
treee0dd86ad1921fd6e677c4460ab9f96f64f4b06f9 /fs/ext4/fast_commit.c
parentclean ufs_trunc_direct() up a bit... (diff)
downloadkernel-6b103cc0ba58c680ab4e59dfa2fca4ceedfb5495.tar.gz
kernel-6b103cc0ba58c680ab4e59dfa2fca4ceedfb5495.zip
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 <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions