From: David Chinner <dgc@sgi.com>
To: Christoph Hellwig <hch@lst.de>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH] fix 32bit build
Date: Tue, 12 Jun 2007 11:45:58 +1000 [thread overview]
Message-ID: <20070612014558.GL86004887@sgi.com> (raw)
In-Reply-To: <20070609102637.GA23294@lst.de>
On Sat, Jun 09, 2007 at 12:26:37PM +0200, Christoph Hellwig wrote:
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
>
> 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 parent reply other threads:[~2007-06-12 1:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-09 10:26 [PATCH] fix 32bit build Christoph Hellwig
2007-06-12 1:45 ` David Chinner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070612014558.GL86004887@sgi.com \
--to=dgc@sgi.com \
--cc=hch@lst.de \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.