xfs
[Top] [All Lists]

Re: [PATCH] fix 32bit build

To: Christoph Hellwig <hch@xxxxxx>
Subject: Re: [PATCH] fix 32bit build
From: David Chinner <dgc@xxxxxxx>
Date: Tue, 12 Jun 2007 11:45:58 +1000
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20070609102637.GA23294@lst.de>
References: <20070609102637.GA23294@lst.de>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Sat, Jun 09, 2007 at 12:26:37PM +0200, Christoph Hellwig wrote:
> 
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> 
> Index: linux-2.6-xfs/fs/xfs/xfs_mount.c
> ===================================================================
> --- linux-2.6-xfs.orig/fs/xfs/xfs_mount.c     2007-06-09 11:20:51.000000000 
> +0200
> +++ linux-2.6-xfs/fs/xfs/xfs_mount.c  2007-06-09 11:21:43.000000000 +0200
> @@ -1154,7 +1154,9 @@ xfs_mountfs(
>        * This may drive us straight to ENOSPC on mount, but that implies
>        * we were already there on the last unmount.
>        */
> -     resblks = min_t(__uint64_t, mp->m_sb.sb_dblocks / 20, 1024);
> +     resblks = mp->m_sb.sb_dblocks;
> +     do_div(resblks, 20);
> +     resblks = min_t(__uint64_t, resblks, 1024);
>       xfs_reserve_blocks(mp, &resblks, NULL);
>  
>       return 0;
> 

/me smacks forehead.

I'll get this sorted. Thanks, Christoph.

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group


<Prev in Thread] Current Thread [Next in Thread>