diff options
author | Kent Overstreet | 2024-04-25 14:41:17 -0400 |
---|---|---|
committer | Kent Overstreet | 2024-04-28 21:34:29 -0400 |
commit | c258c08add1cc8fa7719f112c5db36c08c507f1e (patch) | |
tree | fa34f0127638a4ea9bfc1966b6a594c573f2e665 /fs | |
parent | f7c3dc2646584cddae6fedc517cd58d97483e5cc (diff) |
bcachefs: fix integer conversion bug
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/inode.c b/fs/bcachefs/inode.c index ca4a066e9a54..0f95d7fb5ec0 100644 --- a/fs/bcachefs/inode.c +++ b/fs/bcachefs/inode.c @@ -606,7 +606,7 @@ int bch2_trigger_inode(struct btree_trans *trans, struct bkey_s new, 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 (nr) { |