Messages in this thread | | | Date | Tue, 7 Nov 2000 18:06:32 -0500 (EST) | From | Alexander Viro <> | Subject | Re: swapout vs. filemap_sync_pte...? |
| |
On Mon, 6 Nov 2000, Jeff Garzik wrote:
> The address_space::writepage callback is called from try_to_swap_out() > path, and also from the filemap_sync_pte() path. There appears to be no > way to tell the difference between the two callers. This is not good > because the semantics are very different: "sync this page" versus "page > is going away".
For the filemap VMAs (i.e. ones that are based on address_space with backstore) it is the same thing. For something like tmpfs you have different VMA-level semantics. Ergo, different VMA methods. They can be shared with filemap ones, but you definitely don't want ->vm_ops->sync(). End of the problem...
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |