X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Fafs%2Fwrite.c;h=065b4e10681ae2e449b700ad01c9d3f1c75cd9ab;hb=a738159df2b97398f960978272944cbdd8f726ef;hp=bf0955d91f85de39264e5575a77208f8f087a635;hpb=c1206a2c6d87def4af5379e6fef64e928d882ab2;p=linux-2.6-omap-h63xx.git diff --git a/fs/afs/write.c b/fs/afs/write.c index bf0955d91f8..065b4e10681 100644 --- a/fs/afs/write.c +++ b/fs/afs/write.c @@ -8,7 +8,7 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ - +#include #include #include #include @@ -404,7 +404,7 @@ static int afs_write_back_from_locked_page(struct afs_writeback *wb, page = pages[loop]; if (page->index > wb->last) break; - if (TestSetPageLocked(page)) + if (!trylock_page(page)) break; if (!PageDirty(page) || page_private(page) != (unsigned long) wb) {