[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flushing out a page
Raghu R. Arur wrote:
> Hi,
>
> In try_to_swap_out() (2.4.19), if the page that is getting swapped out
> is dirty, we add the page to the dirty_pages list. And I suppose that this
> page gets flushed out into the disk thru bdflush(). Is there a way that
> I can write the page into the disk instead of relying on bdflush. should i
> use the write_page() function of the mapping??
u mean a_ops->writepage() ..??
guess u can do that (and clear the dirty flag)
or u can use filemap_fdatasync() for all dirty
pages in the mapping..
but why would u want to do this ( "instead of relying on bdflush" )
Abhishek
>
> thanks,
> Raghu
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/