From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [patch 04/24] reiserfs: dont call notify_change Date: Thu, 8 May 2008 12:49:10 -0400 Message-ID: <20080508164910.GA13914@infradead.org> References: <20080506091327.259950960@szeredi.hu> <20080506091410.380189145@szeredi.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: akpm@linux-foundation.org, hch@infradead.org, viro@ZenIV.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jeff Mahoney To: Miklos Szeredi Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:38049 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765051AbYEHQtQ (ORCPT ); Thu, 8 May 2008 12:49:16 -0400 Content-Disposition: inline In-Reply-To: <20080506091410.380189145@szeredi.hu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, May 06, 2008 at 11:13:31AM +0200, Miklos Szeredi wrote: > From: Miklos Szeredi > > Reiserfs calls notify_change() on it's private extended attribute > files to resize and change ownership of these files. Replace with > reiserfs_setattr(). > > This is equivalent, except that: > > - i_alloc_sem locking is not performed around reiserfs_setattr() when > the size is changed > - security_inode_setattr() is not called before reiserfs_setattr() > - fsnotify_change() is not called after reiserfs_setattr() > > None of the above is necessary, since the files are private to > reiserfs and inaccessible from userspace. > > Also remove setting of ctime on the xattr files. I think splitting out the ATTR_SIZE case of reiserfs_setattr into a separate helper would be better. That would a) avoid the useless c and mtime updates on the attribue inode and b) clean up reiserfs_setattr a little bit.