Re: [PATCH] ext4: ext4_mb_mark_free_simple: Fix integer value truncation

2016-11-14 Thread Theodore Ts'o
On Thu, Nov 03, 2016 at 01:32:33PM -0600, Andreas Dilger wrote: > On Nov 3, 2016, at 3:14 AM, Chandan Rajendra > wrote: > > > > 'border' variable is set to a value of 2 times the block size of the > > underlying filesystem. With 64k block size, the resulting value won't > > fit into a 16-bit var

Re: [PATCH] ext4: ext4_mb_mark_free_simple: Fix integer value truncation

2016-11-03 Thread Andreas Dilger
On Nov 3, 2016, at 3:14 AM, Chandan Rajendra wrote: > > 'border' variable is set to a value of 2 times the block size of the > underlying filesystem. With 64k block size, the resulting value won't > fit into a 16-bit variable. Hence this commit changes the data type of > 'border' to 'unsigned int

[PATCH] ext4: ext4_mb_mark_free_simple: Fix integer value truncation

2016-11-03 Thread Chandan Rajendra
'border' variable is set to a value of 2 times the block size of the underlying filesystem. With 64k block size, the resulting value won't fit into a 16-bit variable. Hence this commit changes the data type of 'border' to 'unsigned int'. Signed-off-by: Chandan Rajendra --- fs/ext4/mballoc.c | 2