diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index f3187938e081c7dcbf842d424f5de6ed06d3f93f..2bcbea3f630824272825e4a3bdb60fdc616f8c0e 100644 --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c @@ -1186,7 +1186,7 @@ static char *ref_to_path(struct btrfs_root *fs_root, int slot; u64 next_inum; int ret; - s64 bytes_left = size - 1; + s64 bytes_left = ((s64)size) - 1; struct extent_buffer *eb = eb_in; struct btrfs_key found_key; int leave_spinning = path->leave_spinning;