>>>>> "al" == Alexander Viro <firstname.lastname@example.org> writes:
al> * adds a new method to address_space_operations: void detach_page(page).
al> Meaning: do all work necessary to make page droppable. For block-based
al> filesystems it's block_destroy_buffers(). For ramfs - ClearPageDirty().
al> It is used by truncate_complete_page() and truncate_all_inode_pages() -
al> i.e. whenever we are getting rid of a page due to truncate() or final
al> iput() after unlink().
Al, do you see any problem to my previous patch to the list about
including ClearPageDirty(page) in remove_inode_page()???
The reason to put that is that we need to call that function for all
the fs when we are truncating a file, and each time more fs have the
dirty bit set. Actually the Ramfs and the swap, but I have almost
finished a patch for the deferred_file_write of file mmaped patches
from swap_out. I sent a WIP version of this patch also to the list
(the deferred code is not ready for inclusion yet).
PD. You can get the patches from:
The one to set the ClearPage Dirty.
The deferred file write one:
This one is a proof of concept only implementation, but I would like
to hear comments.
-- In theory, practice and theory are the same, but in practice they are different -- Larry McVoy
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to email@example.com Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:14 EST