On Tue, 2007-02-20 at 11:30 -0500, Trond Myklebust wrote: > > One option is to have invalidate_inode_pages2_range continue if it can't > > toss a page but still return something that O_DIRECT ignores (living > > with the race), but it looks like I can make a launder_page op that does > > the right thing. I'll give it a shot. > > I already sent in a patch to do that last week. To be more precise, here are the 2 patches that I sent to lkml last week. One ensures that we don't stop the invalidation just because of the existence of an unsynced dirty page. The other gets rid of the EIO for that case. Cheers Trond