* triggering do_writepages
@ 2002-11-19 6:59 Kapish K
2002-11-19 11:11 ` girish
2002-11-20 13:38 ` Jan Hudec
0 siblings, 2 replies; 4+ messages in thread
From: Kapish K @ 2002-11-19 6:59 UTC (permalink / raw)
To: linux-fsdevel
Hello,
I have a ( possibly simple ) question on
how to trigger a do-writepages to get
called, for a particular filesystem, on
which I am issuing write calls. Any code
that I put into the generic_file_write code
( around prepare_write or commit_write )
gets triggered when a write is issues, but I
don't seem to be getting do_writepages
invoked for that filesystem ( when I check
the sb pointer for my particular filesystem ).
Am I missing something basic in here?
Any pointers will be most helpful
Thanks in advance
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: triggering do_writepages
2002-11-19 6:59 triggering do_writepages Kapish K
@ 2002-11-19 11:11 ` girish
2002-11-20 13:38 ` Jan Hudec
1 sibling, 0 replies; 4+ messages in thread
From: girish @ 2002-11-19 11:11 UTC (permalink / raw)
To: kapish; +Cc: linux-fsdevel
Hi,
writepage is used when ever there is pressure for memory from VM system
and for mmaped files. I guess writepage need not be triggered explictly. If
you want to add a functionaly for a writepage you can stack it at writepage,
which will be called implicitly
----- Original Message -----
From: "Kapish K" <kapish@ureach.com>
To: <linux-fsdevel@vger.kernel.org>
Sent: Tuesday, November 19, 2002 12:29 PM
Subject: triggering do_writepages
>
> Hello,
> I have a ( possibly simple ) question on
> how to trigger a do-writepages to get
> called, for a particular filesystem, on
> which I am issuing write calls. Any code
> that I put into the generic_file_write code
> ( around prepare_write or commit_write )
> gets triggered when a write is issues, but I
> don't seem to be getting do_writepages
> invoked for that filesystem ( when I check
> the sb pointer for my particular filesystem ).
> Am I missing something basic in here?
> Any pointers will be most helpful
> Thanks in advance
>
> ________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
> -
> To unsubscribe from this list: send the line "unsubscribe linux-fsdevel"
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: triggering do_writepages
@ 2002-11-19 18:27 Bryan Henderson
0 siblings, 0 replies; 4+ messages in thread
From: Bryan Henderson @ 2002-11-19 18:27 UTC (permalink / raw)
To: girish; +Cc: kapish, linux-fsdevel
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, ...).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: triggering do_writepages
2002-11-19 6:59 triggering do_writepages Kapish K
2002-11-19 11:11 ` girish
@ 2002-11-20 13:38 ` Jan Hudec
1 sibling, 0 replies; 4+ messages in thread
From: Jan Hudec @ 2002-11-20 13:38 UTC (permalink / raw)
To: Kapish K; +Cc: linux-fsdevel
On Tue, Nov 19, 2002 at 01:59:33AM -0500, Kapish K wrote:
>
> Hello,
> I have a ( possibly simple ) question on
> how to trigger a do-writepages to get
> called, for a particular filesystem, on
> which I am issuing write calls. Any code
> that I put into the generic_file_write code
> ( around prepare_write or commit_write )
> gets triggered when a write is issues, but I
> don't seem to be getting do_writepages
> invoked for that filesystem ( when I check
> the sb pointer for my particular filesystem ).
> Am I missing something basic in here?
> Any pointers will be most helpful
> Thanks in advance
... i can't find any do_writepages symbol...
Anyway, what is supposed to happen is, that in commit write you either
start the IO (and thus the write is done), or you mark the page dirty
(using set_page_dirty). Later, either when kernel needs to reuse the
page (during memory allocation), or when it decides the page is dirty
too long (in kflushd), it calls the writepage address_space method on
the page. This method must then start the IO (and setup a callback to
unlock it when IO completes and finish). If the IO completes OK, the
callback should set the page clean again so kernel can reuse it.
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec <bulb@ucw.cz>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-11-20 13:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-19 6:59 triggering do_writepages Kapish K
2002-11-19 11:11 ` girish
2002-11-20 13:38 ` Jan Hudec
-- strict thread matches above, loose matches on Subject: below --
2002-11-19 18:27 Bryan Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).