Re: [PATCH] btrfs-progs: defrag: fix threshold overflow again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 24, 2015 at 10:35:02AM +0200, Patrik Lundquist wrote:
> Commit dedb1ebeee847e3c4d71e14d0c1077887630e44a broke commit
> 96cfbbf0ea9fce7ecaa9e03964474f407f6e76ab.
> 
> Casting thresh value greater than (u32)-1 simply truncates bits while
> desired value is (u32)-1 for max defrag threshold.
> 
> I.e. "btrfs fi defrag -t 4g" is trimmed/truncated to 0
> and "-t 5g" to 1073741824.
> 
> Also added a missing newline.
> 
> Signed-off-by: Patrik Lundquist <patrik.lundquist@xxxxxxxxx>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux