]> www.infradead.org Git - users/willy/xarray.git/commit
bcachefs: track writeback errors using the generic tracking infrastructure
authorYouling Tang <tangyouling@kylinos.cn>
Fri, 31 May 2024 02:31:15 +0000 (10:31 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:14 +0000 (19:00 -0400)
commit8b0882505d012ef5f309a1b547fae53080a62f07
tree424f9c694d2b1b871d301fbf2ecf6b1083f97f1f
parentf8b0147364d5938c71c0bf315becd7a9de0d64b0
bcachefs: track writeback errors using the generic tracking infrastructure

We already using mapping_set_error() in bch2_writepage_io_done(), so all
we need to do is to use file_check_and_advance_wb_err() when handling
fsync() requests in bch2_fsync().

Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-io.c