From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [Jfs-patches] [PATCH] Add d_hash and d_compare operations for case-insensitive names (1 of 1) Date: Mon, 12 Jul 2004 19:43:06 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20040712184306.GA28609@infradead.org> References: <200407121839.i6CIdMBn006454@kleikamp.dyn.webahead.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: jfs-patches@www-124.ibm.com, linux-fsdevel@vger.kernel.org Return-path: Received: from [213.146.154.40] ([213.146.154.40]:38610 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S261682AbUGLSnQ (ORCPT ); Mon, 12 Jul 2004 14:43:16 -0400 To: shaggy@austin.ibm.com Content-Disposition: inline In-Reply-To: <200407121839.i6CIdMBn006454@kleikamp.dyn.webahead.ibm.com> List-Id: linux-fsdevel.vger.kernel.org > - return d_splice_alias(ip, dentry); > + if (JFS_SBI(dip->i_sb)->mntflag & JFS_OS2) > + dentry->d_op = &jfs_ci_dentry_operations; > + > + dentry = d_splice_alias(ip, dentry); > + > + if (dentry && (JFS_SBI(dip->i_sb)->mntflag & JFS_OS2)) > + dentry->d_op = &jfs_ci_dentry_operations;A If d_splice_alias doesn't propagate d_ops it needs to be fixed, not worked around. > + memcpy((unsigned char *)a->name, b->name, a->len); why do you need this cast?