]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
dnotify: move dir_notify_enable declaration
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 20 Jan 2010 20:27:56 +0000 (22:27 +0200)
committerEric Paris <eparis@redhat.com>
Wed, 28 Jul 2010 13:59:01 +0000 (09:59 -0400)
Move dir_notify_enable declaration to where it belongs -- dnotify.h .

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
include/linux/dnotify.h
include/linux/fs.h
kernel/sysctl.c

index ecc06286226dc3743ad32ce9aab731d225de8247..3290555a52ee62e722860bcb00244ba296a2d4b2 100644 (file)
@@ -28,6 +28,7 @@ struct dnotify_struct {
                            FS_CREATE | FS_DN_RENAME |\
                            FS_MOVED_FROM | FS_MOVED_TO)
 
+extern int dir_notify_enable;
 extern void dnotify_flush(struct file *, fl_owner_t);
 extern int fcntl_dirnotify(int, struct file *, unsigned long);
 
index f9a00327875886090988b2974c5fa0276c839d2f..d92c212476f916edf7cc4d52bb0f4163b69dfda6 100644 (file)
@@ -410,9 +410,6 @@ extern int get_max_files(void);
 extern int sysctl_nr_open;
 extern struct inodes_stat_t inodes_stat;
 extern int leases_enable, lease_break_time;
-#ifdef CONFIG_DNOTIFY
-extern int dir_notify_enable;
-#endif
 
 struct buffer_head;
 typedef int (get_block_t)(struct inode *inode, sector_t iblock,
index d24f761f48769d925692efcbb233a276dad01905..7b983dbfe0ec3249c222aeb813a8ab54d85eb208 100644 (file)
@@ -44,6 +44,7 @@
 #include <linux/times.h>
 #include <linux/limits.h>
 #include <linux/dcache.h>
+#include <linux/dnotify.h>
 #include <linux/syscalls.h>
 #include <linux/vmstat.h>
 #include <linux/nfs_fs.h>