btrfs: fix int32 overflow in shrink_delalloc().
[deliverable/linux.git] / fs / btrfs / extent-tree.c
index 84e060eb0de8c6aca562bcfb537f5236a71e9e66..391f576789e96d8caf262da107b42b8cc438924a 100644 (file)
@@ -4620,7 +4620,7 @@ static void shrink_delalloc(struct btrfs_root *root, u64 to_reclaim, u64 orig,
 
        /* Calc the number of the pages we need flush for space reservation */
        items = calc_reclaim_items_nr(root, to_reclaim);
-       to_reclaim = items * EXTENT_SIZE_PER_ITEM;
+       to_reclaim = (u64)items * EXTENT_SIZE_PER_ITEM;
 
        trans = (struct btrfs_trans_handle *)current->journal_info;
        block_rsv = &root->fs_info->delalloc_block_rsv;
This page took 0.025012 seconds and 5 git commands to generate.