bcachefs: Reflink refcount fix
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 28 May 2021 01:16:50 +0000 (21:16 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:04 +0000 (17:09 -0400)
commit9eba7c8d15ce236b8033ae1f50fc1168984a507b
tree3da51bd3ddf1e3e82c7a5e00a53025be3aeb7d69
parentb282a74faebc9475355179aff40b98b5dbe0ae01
bcachefs: Reflink refcount fix

__bch2_trans_mark_reflink_p wasn't always correctly returning the number
of sectors processed - the new logic is a bit more straightforward
overall too.

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