From: Andrew Morton Subject: Re: inode->i_flags locking Date: Fri, 2 Jul 2004 12:54:45 -0700 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20040702125445.1f6d395b.akpm@osdl.org> References: <20040626141941.71adaec4.akpm@osdl.org> <20040701200356.GD3540@atrey.karlin.mff.cuni.cz> <20040701150236.7d2f5577.akpm@osdl.org> <20040702122412.GA9054@atrey.karlin.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from fw.osdl.org ([65.172.181.6]:30622 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S264826AbUGBTzs (ORCPT ); Fri, 2 Jul 2004 15:55:48 -0400 To: Jan Kara In-Reply-To: <20040702122412.GA9054@atrey.karlin.mff.cuni.cz> List-Id: linux-fsdevel.vger.kernel.org Jan Kara wrote: > > > Jan Kara wrote: > > > > > > > What protects inode->i_flags? > > > > > > > > - During read_inode() nobody can see the inode anyway > > > > > > > > - fs/namei.c uses i_sem (which seems appropriate) > > > > > > > > - fs/dquot.c doesn't seem to use i_sem? > > > Here is a patch which fixes the bug. > > > > It gets rather a large reject due to post-2.6.7 changes in remove_dquot_ref(). > > Could you fix that up please? > Yes. It's probably because of my lack of BK knowledge but I just > cloned linux-2.6 tree from linux.bkbits.net and there I get only a > trivial reject in fs.h. So where am I doing a mistake? Maybe I screwed up, not sure. Please resend the whole patch.