public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Dave Chinner <david@fromorbit.com>
Cc: Brian Foster <bfoster@redhat.com>,
	xfs@oss.sgi.com, Jan Kara <jack@suse.cz>,
	dchinner@redhat.com
Subject: Re: [PATCH v2] xfs: Fix rounding in xfs_alloc_fix_len()
Date: Mon, 16 Jun 2014 11:00:01 +0200	[thread overview]
Message-ID: <20140616090001.GA15837@quack.suse.cz> (raw)
In-Reply-To: <20140613235622.GA9508@dastard>

On Sat 14-06-14 09:56:22, Dave Chinner wrote:
> On Fri, Jun 13, 2014 at 05:02:07PM +0200, Jan Kara wrote:
> > On Wed 04-06-14 14:44:40, Brian Foster wrote:
> > > On Wed, Jun 04, 2014 at 06:53:53PM +0200, Jan Kara wrote:
> > > > Rounding in xfs_alloc_fix_len() is wrong. As the comment states, the
> > > > result should be a number of a form (k*prod+mod) however due to sign
> > > > mistake the result is different. As a result allocations on raid arrays
> > > > could be misaligned in some cases.
> > > > 
> > > > This also seems to fix occasional assertion failure:
> > > > 	XFS_WANT_CORRUPTED_GOTO(rlen <= flen, error0)
> > > > in xfs_alloc_ag_vextent_size().
> > > > 
> > > > Also add an assertion that the result of xfs_alloc_fix_len() is of
> > > > expected form.
> > > > 
> > > > Signed-off-by: Jan Kara <jack@suse.cz>
> > > > ---
> > > 
> > > Looks good to me. Thanks Jan.
> > > 
> > > Reviewed-by: Brian Foster <bfoster@redhat.com>
> >   Ping Dave? Are you going to pick up this patch?
> 
> I did - it's already in Linus' tree for 3.16:
> 
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/fs/xfs/xfs_alloc.c?id=30265117ee1e23fa91920f337a3ea91207f700dc
  Ah, sorry. I was expecting some email about acceptance. I'll check the git
tree next time.

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

      reply	other threads:[~2014-06-16  9:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-04 16:53 [PATCH v2] xfs: Fix rounding in xfs_alloc_fix_len() Jan Kara
2014-06-04 18:44 ` Brian Foster
2014-06-13 15:02   ` Jan Kara
2014-06-13 23:56     ` Dave Chinner
2014-06-16  9:00       ` Jan Kara [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=20140616090001.GA15837@quack.suse.cz \
    --to=jack@suse.cz \
    --cc=bfoster@redhat.com \
    --cc=david@fromorbit.com \
    --cc=dchinner@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox