]> git.hungrycats.org Git - linux/commitdiff
zygo: btrfs: did I make a zero here? How is this working?
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 27 Feb 2023 19:05:32 +0000 (14:05 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 27 Feb 2023 19:05:32 +0000 (14:05 -0500)
fs/btrfs/block-rsv.c

index 58e2a0dc9704c389115307cede532a4da2124569..bdaa6ca0ac5c46b397708c728be73d29e8f6984a 100644 (file)
@@ -393,7 +393,7 @@ void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info)
        spin_lock(&sinfo->lock);
        spin_lock(&block_rsv->lock);
 
-       block_rsv->size = min_t(u64, num_bytes, SZ_512M * 16);
+       block_rsv->size = min_t(u64, num_bytes, SZ_512M * 16ULL);
 
        if (block_rsv->reserved < block_rsv->size) {
                num_bytes = block_rsv->size - block_rsv->reserved;