]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/cifs/file.c
mm: rename page trylock
[linux-2.6-omap-h63xx.git] / fs / cifs / file.c
index 0aac824371a579bd4f508f7360685b15c4ad74a4..e692c42f24b5ffcbcbe1cf50b31b5f23ca243fa6 100644 (file)
@@ -1280,7 +1280,7 @@ retry:
 
                        if (first < 0)
                                lock_page(page);
-                       else if (TestSetPageLocked(page))
+                       else if (!trylock_page(page))
                                break;
 
                        if (unlikely(page->mapping != mapping)) {