Re: [PATCH 7/7] btrfs: Promote to unsigned long long before multiplying

2020-10-26 Thread David Sterba
On Sun, Oct 04, 2020 at 07:04:28PM +0100, Matthew Wilcox (Oracle) wrote: > On 32-bit systems, these shifts will overflow for files larger than 4GB. > Add helper functions to avoid this problem coming back. > > Cc: sta...@vger.kernel.org > Fixes: 73ff61dbe5ed ("Btrfs: fix device replace of a

[PATCH 7/7] btrfs: Promote to unsigned long long before multiplying

2020-10-04 Thread Matthew Wilcox (Oracle)
On 32-bit systems, these shifts will overflow for files larger than 4GB. Add helper functions to avoid this problem coming back. Cc: sta...@vger.kernel.org Fixes: 73ff61dbe5ed ("Btrfs: fix device replace of a missing RAID 5/6 device") Fixes: be50a8ddaae1 ("Btrfs: Simplify