From: Christoph Hellwig Subject: Re: [PATCH 2/7] XFS: ASCII case-insensitive support Date: Thu, 3 Apr 2008 13:09:45 -0400 Message-ID: <20080403170945.GA22385@infradead.org> References: <20080402062508.017738664@chook.melbourne.sgi.com> <20080402062708.071715758@chook.melbourne.sgi.com> <20080403015331.GP103491721@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Barry Naujok , xfs@oss.sgi.com, linux-fsdevel@vger.kernel.org To: David Chinner Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:52813 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752534AbYDCRJp (ORCPT ); Thu, 3 Apr 2008 13:09:45 -0400 Content-Disposition: inline In-Reply-To: <20080403015331.GP103491721@sgi.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Apr 03, 2008 at 11:53:31AM +1000, David Chinner wrote: > > + if (xfs_sb_version_hasoldci(&mp->m_sb)) > > + sb->s_root->d_op = &xfs_ci_dentry_operations; > > Write a helper function for this: xfs_set_ci_dentry_ops(mp, dentry) > rather than exporting the xfs_ci_dentry_operations structure. yes, please. also the export ops calling d_alloc_anon need to update the dentry ops aswel and should be using this one. > > +#define XFS_SB_VERSION_OLDCIBIT 0x4000 /* ASCII only case-insens. */ > > #define XFS_SB_VERSION_MOREBITSBIT 0x8000 > > #define XFS_SB_VERSION_OKSASHFBITS \ > > Whitespace. > > But it's a shame you're being sensible about this - I kinda liked > the Irix name for this feature (XFS_SB_VERSION_BORGBIT). :) So what exactly prevents us from using it in Linux? please use the old name.