]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Futex update III: don't use put_page...
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 6 Jun 2002 02:25:51 +0000 (19:25 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 6 Jun 2002 02:25:51 +0000 (19:25 -0700)
This uses page_cache_release() instead of put_page(), as it might
be a pagecache page.

kernel/futex.c

index 029c902869f4c309e14c3de9b11d9e4e6e6e2827..a91d8ee276a40942d42cbf2b8084e16a7c173ffc 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/futex.h>
 #include <linux/highmem.h>
 #include <linux/time.h>
+#include <linux/pagemap.h>
 #include <asm/uaccess.h>
 
 /* Simple "sleep if unchanged" interface. */
@@ -215,7 +216,7 @@ asmlinkage int sys_futex(void *uaddr, int op, int val, struct timespec *utime)
        default:
                ret = -EINVAL;
        }
-       put_page(page);
+       page_cache_release(page);
 
        return ret;
 }