From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerome de Vivie Subject: changing d_parent Date: Sun, 18 May 2003 19:42:29 +0200 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <3EC7C605.DB4BA3ED@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from postfix4-2.free.fr ([213.228.0.176]:9413 "EHLO postfix4-2.free.fr") by vger.kernel.org with ESMTP id S262142AbTERRaB (ORCPT ); Sun, 18 May 2003 13:30:01 -0400 Received: from free.fr (lns-p19-7-82-65-234-123.adsl.proxad.net [82.65.234.123]) by postfix4-2.free.fr (Postfix) with ESMTP id EA790C209 for ; Sun, 18 May 2003 19:42:56 +0200 (CEST) To: linux-fsdevel@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org I would like to change the "d_parent" field of a dentry. This is for shrinking entry equivalent to a "./" in my filesystem namespace. The dentry has just been allocated and has no child. I'm new to the=20 dcache and i would like to know if thoses lines are is safe: spin_lock(&dcache_lock); list_del(&dentry->d_child); dput(dentry->d_parent); dentry->d_parent =3D dget(newparent); list_add(&dentry->d_child, &newparent->d_subdirs); spin_unlock(&dcache_lock); kind regards, j. --=20 J=E9r=F4me de Vivie - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html