xfs
[Top] [All Lists]

Re: [PATCH 10/21] implement generic xfs_btree_decrement

To: Christoph Hellwig <hch@xxxxxx>
Subject: Re: [PATCH 10/21] implement generic xfs_btree_decrement
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 30 Jul 2008 12:09:19 +1000
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20080729193058.GK19104@lst.de>
Mail-followup-to: Christoph Hellwig <hch@xxxxxx>, xfs@xxxxxxxxxxx
References: <20080729193058.GK19104@lst.de>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Tue, Jul 29, 2008 at 09:30:58PM +0200, Christoph Hellwig wrote:
> From: Dave Chinner <dgc@xxxxxxx>
> 
> [hch: split out from bigger patch and minor adaptions]
> 
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
....
> +     /*
> +      * If we went off the root then we are seriously confused.
> +      * or the root of the tree is in an inode.
> +      */
> +     if (lev == cur->bc_nlevels) {
> +             ASSERT(cur->bc_flags & XFS_BTREE_ROOT_IN_INODE);
> +             goto out0;
> +     }

Same question as for the increment case.

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx


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