]> git.itanic.dy.fi Git - linux-stable/commit
bcachefs: snapshot: Add missing assignment in bch2_delete_dead_snapshots()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 15 Sep 2023 12:56:37 +0000 (15:56 +0300)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:14 +0000 (17:10 -0400)
commitd67a72bfc92b0c0dab9c134964090c4700892e67
tree258005cb0e9740aedb4c4d6eb7d4a18f4d29a288
parent1f12900ab52304a7c41714b6ad86990eb428fbc9
bcachefs: snapshot: Add missing assignment in bch2_delete_dead_snapshots()

This code accidentally left out the "ret = " assignment so the errors
from for_each_btree_key2() are not checked.

Fixes: 53534482a250 ("bcachefs: for_each_btree_key2()")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/snapshot.c