bcachefs: Don't log errors if BCH_WRITE_ALLOC_NOWAIT
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 11 Jan 2024 04:08:30 +0000 (23:08 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 21 Jan 2024 11:01:45 +0000 (06:01 -0500)
commit4ecad0da9de830681ffff973bc0d47b07612bbe6
tree25ef8543c8395e05b57aedd34ce81d4faed913de
parente240c1b3635e3fc7d3ba46c6fe12a0d8efb2941a
bcachefs: Don't log errors if BCH_WRITE_ALLOC_NOWAIT

Previously, we added logging in the write path to ensure that any
unexpected errors getting reported to userspace have a log message; but
BCH_WRITE_ALLOC_NOWAIT is a special case, it's used for promotes where
errors are expected and not reported out to userspace - so we need to
silence those.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io_write.c