xfs
[Top] [All Lists]

Re: XFS internal error xfs_trans_cancel at line 1150 of file fs/xfs/xfs_

To: xfs@xxxxxxxxxxx
Subject: Re: XFS internal error xfs_trans_cancel at line 1150 of file fs/xfs/xfs_trans.c
From: "Christian Røsnes" <christian.rosnes@xxxxxxxxx>
Date: Fri, 14 Mar 2008 10:02:44 +0100
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=bidT734VPu6k+N4l6+0akP6S3S5ryE0ZCV7KwejydK8=; b=T+sY6wD3r7EV++Oc5kUISR0twfT6TIcrR06lmjkF4v/D+9Eho9fuqEoa7s7iOicVDXodB+yoLpA+Y2jtPgxHAsH7PQjElcc0La/5uUYvXBIKvdkZ3CC7/XALYlG2YVcJAXY0SIbcDPAf+kQ97lEY5UAq/OUX6qgjpl3h+nLcQw0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qCLGuIYi7Fq3dVKCFWbbAGfs8itHF461w4Tqz81o/DWaJBXE+qwPNXnpEaRzib/UwgZ+wf5K7DmsDDBWdb/L/bDvfP+TFFjAiFCce3bKKOlo7ZPzmLt+LwZSLOKPWcccWkqjFIxu4HWw5KghXFotRc+TcfQeeH4Nv/JyJuxhS3M=
In-reply-to: <20080313145349.GJ95344431@xxxxxxx>
References: <20080311122103.GP155407@xxxxxxx> <20080312232425.GR155407@xxxxxxx> <1a4a774c0803130114l3927051byd54cd96cdb0efbe7@xxxxxxxxxxxxxx> <20080313090830.GD95344431@xxxxxxx> <1a4a774c0803130214x406a4eb9wfb8738d1f503663f@xxxxxxxxxxxxxx> <20080313092139.GF95344431@xxxxxxx> <1a4a774c0803130227l2fdf4861v21183b9bd3e7ce8d@xxxxxxxxxxxxxx> <20080313113634.GH95344431@xxxxxxx> <1a4a774c0803130446x609b9cb2mf3da323183c35606@xxxxxxxxxxxxxx> <20080313145349.GJ95344431@xxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
On Thu, Mar 13, 2008 at 3:53 PM, David Chinner <dgc@xxxxxxx> wrote:

>  The patch below fixes the shutdown for me. Can you give it a go?
>
>
>  Cheers,
>
>  Dave.
>  --
>  Dave Chinner
>  Principal Engineer
>  SGI Australian Software Group
>
>
>  ---
>   fs/xfs/xfs_ialloc.c |    7 ++++++-
>   1 file changed, 6 insertions(+), 1 deletion(-)
>
>  Index: 2.6.x-xfs-new/fs/xfs/xfs_ialloc.c
>  ===================================================================
>  --- 2.6.x-xfs-new.orig/fs/xfs/xfs_ialloc.c      2008-03-13 
> 13:07:24.000000000 +1100
>  +++ 2.6.x-xfs-new/fs/xfs/xfs_ialloc.c   2008-03-14 01:40:21.926153338 +1100
>  @@ -167,7 +167,12 @@ xfs_ialloc_ag_alloc(
>
>                 args.mod = args.total = args.wasdel = args.isfl =
>                         args.userdata = args.minalignslop = 0;
>                 args.prod = 1;
>  -               args.alignment = 1;
>  +               if (xfs_sb_version_hasalign(&args.mp->m_sb) &&
>
> +                       args.mp->m_sb.sb_inoalignmt >=
>  +                       XFS_B_TO_FSBT(args.mp, 
> XFS_INODE_CLUSTER_SIZE(args.mp)))
>  +                               args.alignment = args.mp->m_sb.sb_inoalignmt;
>  +               else
>  +                       args.alignment = 1;
>
>
>                 /*
>                  * Allow space for the inode btree to split.
>                  */
>

Yes. This patch fixes the shutdown problem for me too.

Once again, thanks.

Christian


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