Skip to content

Commit c258c08

Browse files
author
Kent Overstreet
committed
bcachefs: fix integer conversion bug
Signed-off-by: Kent Overstreet <[email protected]>
1 parent f7c3dc2 commit c258c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ int bch2_trigger_inode(struct btree_trans *trans,
606606
struct bkey_s new,
607607
unsigned flags)
608608
{
609-
s64 nr = bkey_is_inode(new.k) - bkey_is_inode(old.k);
609+
s64 nr = (s64) bkey_is_inode(new.k) - (s64) bkey_is_inode(old.k);
610610

611611
if (flags & BTREE_TRIGGER_TRANSACTIONAL) {
612612
if (nr) {

0 commit comments

Comments
 (0)