On Mon, Mar 21, 2005 at 01:33:55PM -0800, Bryan Henderson wrote: > It looks to me like you're running into the fundamental limitation that > the CPU doesn't notify Linux every time you store into a memory location. > It does, though, set the dirty flag in the page table, and Linux > eventually inspects that flag and finds out that you have stored in the > past. At that time, it can call set_page_dirty.
well, we *could* know ... never map this page writable. have a per-vma flag that says "emulate writes", and call the filesystem to update backing storage before returning to the application. the price of doing this would be exorbitant. -- "Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
