]> err.no Git - linux-2.6/blobdiff - fs/dnotify.c
[PATCH] x86_64: fix bad page state in process 'swapper'
[linux-2.6] / fs / dnotify.c
index f3b540dd5d11712b5aa7631084ce4f3303ec21b0..2b0442db67e05cb7b0a275dafd0f7c762d86e050 100644 (file)
@@ -21,9 +21,9 @@
 #include <linux/spinlock.h>
 #include <linux/slab.h>
 
-int dir_notify_enable = 1;
+int dir_notify_enable __read_mostly = 1;
 
-static kmem_cache_t *dn_cache;
+static kmem_cache_t *dn_cache __read_mostly;
 
 static void redo_inode_mask(struct inode *inode)
 {
@@ -92,7 +92,7 @@ int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg)
                prev = &odn->dn_next;
        }
 
-       error = f_setown(filp, current->pid, 0);
+       error = __f_setown(filp, task_pid(current), PIDTYPE_PID, 0);
        if (error)
                goto out_free;