summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/io_write.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-04-15 13:55:16 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-05-21 20:14:17 -0400
commit2085325171f2f2d33a94101e58266f325c286e95 (patch)
treeaaacf972ec847b132675830eb22b3ffd23175cc1 /fs/bcachefs/io_write.c
parentbcachefs: bch2_run_explicit_recovery_pass_printbuf() (diff)
downloadlinux-2085325171f2f2d33a94101e58266f325c286e95.tar.gz
linux-2085325171f2f2d33a94101e58266f325c286e95.zip
bcachefs: Simplify bch2_count_fsck_err()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io_write.c')
-rw-r--r--fs/bcachefs/io_write.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/bcachefs/io_write.c b/fs/bcachefs/io_write.c
index 401347e135b7..c738ae6fd9a5 100644
--- a/fs/bcachefs/io_write.c
+++ b/fs/bcachefs/io_write.c
@@ -263,9 +263,7 @@ static inline int bch2_extent_update_i_size_sectors(struct btree_trans *trans,
prt_printf(&buf, "inode %llu i_sectors underflow: %lli + %lli < 0",
extent_iter->pos.inode, bi_sectors, i_sectors_delta);
- bool repeat = false, print = false, suppress = false;
- bch2_count_fsck_err(c, inode_i_sectors_underflow, buf.buf,
- &repeat, &print, &suppress);
+ bool print = bch2_count_fsck_err(c, inode_i_sectors_underflow, &buf);
if (print)
bch2_print_str(c, buf.buf);
printbuf_exit(&buf);