bcachefs: fix integer conversion bug
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
f7c3dc2646
commit
c258c08add
|
@ -606,7 +606,7 @@ int bch2_trigger_inode(struct btree_trans *trans,
|
||||||
struct bkey_s new,
|
struct bkey_s new,
|
||||||
unsigned flags)
|
unsigned flags)
|
||||||
{
|
{
|
||||||
s64 nr = bkey_is_inode(new.k) - bkey_is_inode(old.k);
|
s64 nr = (s64) bkey_is_inode(new.k) - (s64) bkey_is_inode(old.k);
|
||||||
|
|
||||||
if (flags & BTREE_TRIGGER_TRANSACTIONAL) {
|
if (flags & BTREE_TRIGGER_TRANSACTIONAL) {
|
||||||
if (nr) {
|
if (nr) {
|
||||||
|
|
Loading…
Reference in New Issue