From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from perches-mx.perches.com ([206.117.179.246]:49723 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758532Ab3HNSHq (ORCPT ); Wed, 14 Aug 2013 14:07:46 -0400 Message-ID: <1376503665.1949.98.camel@joe-AO722> Subject: Re: btrfs zero divide From: Joe Perches To: Geert Uytterhoeven Cc: Zach Brown , Andrew Morton , Andreas Schwab , Josef Bacik , Thorsten Glaser , Debian GNU/Linux m68k , linux-btrfs@vger.kernel.org, Linux Kernel Development , David Woodhouse , Chris Mason , scsi Date: Wed, 14 Aug 2013 11:07:46 -0700 In-Reply-To: References: <20130730171329.GF24583@localhost.localdomain> <20130730204001.GG24583@localhost.localdomain> <87eha33v9f.fsf@igel.home> <20130809180441.GB12314@lenny.home.zabbo.net> Content-Type: text/plain; charset="ISO-8859-1" Mime-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Wed, 2013-08-14 at 10:56 +0200, Geert Uytterhoeven wrote: > These bring in the 64-bit divisor from somewhere else, so they're less > trivial to fix. Using div64_u64 or div64_s64 could fix it. Maybe that could be added to do_div too.