projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7c3dc2
)
bcachefs: fix integer conversion bug
author
Kent Overstreet
<kent.overstreet@linux.dev>
Thu, 25 Apr 2024 18:41:17 +0000
(14:41 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 29 Apr 2024 01:34:29 +0000
(21:34 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/inode.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/inode.c
b/fs/bcachefs/inode.c
index ca4a066e9a5428aa68f88d77f59e9c365a580d6c..0f95d7fb5ec0bddf755299a70908a3520c307f69 100644
(file)
--- 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) {