|
@@ -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 */
|
|
/* Calc the number of the pages we need flush for space reservation */
|
|
items = calc_reclaim_items_nr(root, to_reclaim);
|
|
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;
|
|
trans = (struct btrfs_trans_handle *)current->journal_info;
|
|
block_rsv = &root->fs_info->delalloc_block_rsv;
|
|
block_rsv = &root->fs_info->delalloc_block_rsv;
|