From: Kapish K Subject: Re: Re: triggering do_writepages Date: Wed, 20 Nov 2002 03:16:27 -0500 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <200211200816.DAA16049@www22.ureach.com> Reply-To: Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: To: "Bryan Henderson" , "girish" List-Id: linux-fsdevel.vger.kernel.org Hello, Thanks for your inputs. I do understand that wrietpage is triggered via the swap or bflush paths of syncing or wrting back to disk, from looking at the code. No issues there. But, the thing I observed, for my situation, where I want to insert some stub in do-writepages path and want to test its triggering, I do not find it getting triggered. The situation being that I want to invoke some code in do_writepages path for a particular filesystem ( identified by the super_block, say ). In that case, when I issue writes on the filesystem, I do see the commit/prepare write path activated ASAP as it it should be. But on a explicit sync on the filesystem, I don't see writepages for that filesystem activated. And there lies the confusion. Again, have I missed something obvious out here? Thanks, in advance ---- On Tue, 19 Nov 2002, Bryan Henderson (hbryan@us.ibm.com) wrote: > > writepage also runs when the system synchronizes a file's cache in any of > numerous ways (fsync() system call, sync() system call, filesystem driver > calls f_datasync() kernel service, ...). > > > > > ________________________________________________ Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag