Btrfs: Fix integer overflow when calculating bytes_per_bitmap
On ppc64, bytes_per_bitmap will be (65536*8*65536). Hence append UL to fix integer overflow. Reviewed-by: Josef Bacik <jbacik@fb.com> Reviewed-by: Chandan Rajendra <chandan@linux.vnet.ibm.com> Signed-off-by: Feifei Xu <xufeifei@linux.vnet.ibm.com> Signed-off-by: David Sterba <dsterba@suse.com>
Esse commit está contido em:
@@ -22,7 +22,7 @@
|
||||
#include "../disk-io.h"
|
||||
#include "../free-space-cache.h"
|
||||
|
||||
#define BITS_PER_BITMAP (PAGE_SIZE * 8)
|
||||
#define BITS_PER_BITMAP (PAGE_SIZE * 8UL)
|
||||
|
||||
/*
|
||||
* This test just does basic sanity checking, making sure we can add an extent
|
||||
|
Referência em uma nova issue
Block a user