From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomas Hruby Subject: Re: Handling a directory search Date: Thu, 9 Feb 2006 14:06:09 +0100 Message-ID: <5931eebf0602090506s7e1b4628k2a958c8ca44b721e@mail.gmail.com> References: <200602081110.00692.manningc2@actrix.gen.nz> <200602081518.18804.manningc2@actrix.gen.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from wproxy.gmail.com ([64.233.184.192]:10716 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S1750798AbWBINGL convert rfc822-to-8bit (ORCPT ); Thu, 9 Feb 2006 08:06:11 -0500 Received: by wproxy.gmail.com with SMTP id i6so292918wra for ; Thu, 09 Feb 2006 05:06:09 -0800 (PST) To: Charles Manning , linux-fsdevel@vger.kernel.org In-Reply-To: <200602081518.18804.manningc2@actrix.gen.nz> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hi, > The dir operations .open will be called during opendir, allowing me to hang a > context off filp->private_data. If I am not wrong, e.g. EXT3 does it in readdir. It checks whether filp->private_data == NULL and so decides if it is called for the first time (because it is deallocated only in the .release) We do the same in our fs. Tomas