From: Andrew Morton Subject: Re: [PATCHv4 01/17] VFS: introduce helpers for the s_dirty flag Date: Fri, 28 May 2010 14:17:55 -0700 Message-ID: <20100528141755.42958d81.akpm@linux-foundation.org> References: <1274795352-3551-1-git-send-email-dedekind1@gmail.com> <1274795352-3551-2-git-send-email-dedekind1@gmail.com> <20100528132318.0783675a.akpm@linux-foundation.org> <20100528211432.GM31073@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Artem Bityutskiy , LKML , Jens Axboe , linux-fsdevel@vger.kernel.org, Roman Zippel , "Tigran A. Aivazian" , Chris Mason , Boaz Harrosh , linux-ext4@vger.kernel.org, "Theodore Ts'o" , OGAWA Hirofumi , David Woodhouse , reiserfs-devel@vger.kernel.org, Jan Kara , Evgeniy Dushistov To: Al Viro Return-path: In-Reply-To: <20100528211432.GM31073@ZenIV.linux.org.uk> Sender: reiserfs-devel-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org On Fri, 28 May 2010 22:14:32 +0100 Al Viro wrote: > On Fri, May 28, 2010 at 01:23:18PM -0700, Andrew Morton wrote: > > > A more conventional and superior naming scheme is > > subsystemid_specific_function_identifier(). eg, bio_add_page() instead > > of add_page_to_bio(). > > > > So these want to be sb_mark_dirty(), etc. > > > > Being very old code written by very yound people, the VFS kinda ignores > > that convention, but it doesn't hurt to use it for new code. > > > > Feel free to ignore me if that's too much of a PITA ;) > > The real issue is that it's almost certainly an overdesign. Let's > get rid of the bogus uses first and figure out what's happening in > what remains, OK? That would be good. > I have no problems with doing such wrappers, but if we touch every > place using ->s_dirt anyway, let's at least take a good look at them. When adding wrappers we should also rename ->s_dirt (say, to __s_dirt) to catch out any unconverted code.