[PATCH] Fix SMP race in truncate
authorAndrew Morton <akpm@zip.com.au>
Sun, 5 May 2002 08:10:05 +0000 (01:10 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 5 May 2002 08:10:05 +0000 (01:10 -0700)
commitd028eab535bd8c1597391fd850f93501ff06f044
tree81b28667207a23421f81881948d71cfc85c96fef
parent49c7cfe7dcd6c6a31b8ed3a82f6d947013b8cdf6
[PATCH] Fix SMP race in truncate

Closes a small race window: testing PageWriteback() outside the page
lock introduces the possibility that page could be redirtied and have
writeback started after we've inspected PageWriteback.
mm/filemap.c