On Wed, Feb 25, 2009 at 05:40:52PM +0800, yawei niu wrote: > On Wed, Feb 25, 2009 at 4:47 PM, Nick Piggin <npiggin@xxxxxxx> wrote: > > > Hi, > > > > I have a problem with writepage because the caller clears the page dirty > > bit before calling the filesystem. I want to do proper refcounting on > > filesystem metadata in fsblock, and this includes pinning the metadata > > when it is dirty. > Is it possible that two threads trigger writepage on same page in this way? It shouldn't be, because the filesystem would have to hold page lock over the operation and until it either clears dirty, or decides it is not going to do the writeback. No different from the former rules in that respect. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html