From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754472AbYJBGNn (ORCPT ); Thu, 2 Oct 2008 02:13:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753959AbYJBGM3 (ORCPT ); Thu, 2 Oct 2008 02:12:29 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:33026 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753952AbYJBGM1 (ORCPT ); Thu, 2 Oct 2008 02:12:27 -0400 Date: Wed, 1 Oct 2008 23:12:01 -0700 From: Andrew Morton To: Mark Fasheh Cc: linux-kernel@vger.kernel.org, joel.becker@oracle.com, ocfs2-devel@oss.oracle.com, linux-fsdevel@vger.kernel.org, tao.ma@oracle.com, mfasheh@suse.com Subject: Re: [PATCH 11/39] ocfs2: Add extent tree operation for xattr value btrees Message-Id: <20081001231201.ece971cf.akpm@linux-foundation.org> In-Reply-To: <1222293680-15451-12-git-send-email-mfasheh@suse.com> References: <1222293680-15451-1-git-send-email-mfasheh@suse.com> <1222293680-15451-12-git-send-email-mfasheh@suse.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Wed, 24 Sep 2008 15:00:52 -0700 Mark Fasheh wrote: > + void *private; > }; > > static void ocfs2_dinode_set_last_eb_blk(struct ocfs2_extent_tree *et, > @@ -136,9 +137,50 @@ static struct ocfs2_extent_tree_operations ocfs2_dinode_et_ops = { > .sanity_check = ocfs2_dinode_sanity_check, > }; > > +static void ocfs2_xattr_value_set_last_eb_blk(struct ocfs2_extent_tree *et, > + u64 blkno) > +{ > + struct ocfs2_xattr_value_root *xv = > + (struct ocfs2_xattr_value_root *)et->private; unneeded and undesirable cast of void* > + xv->xr_last_eb_blk = cpu_to_le64(blkno); > +} > + > +static u64 ocfs2_xattr_value_get_last_eb_blk(struct ocfs2_extent_tree *et) > +{ > + struct ocfs2_xattr_value_root *xv = > + (struct ocfs2_xattr_value_root *) et->private; many etceteras.