bcachefs: Fix an assertion
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 3 Jan 2022 03:24:43 +0000 (22:24 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:21 +0000 (17:09 -0400)
commit6558e61dfe1ec1d54a39cb4604d00efa5bcaaa7e
tree9fff558d02cd67a8fd57b0c188ccbeb176ff8db4
parenteacb2574f09f5b71acc468d44e7a1633847fd08d
bcachefs: Fix an assertion

bch2_trans_commit() can legitimately return -ENOSPC with
BTREE_INSERT_NOFAIL set if BTREE_INSERT_NOWAIT was also set.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_update_leaf.c