Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2dfc1cae authored by Eric Paris's avatar Eric Paris
Browse files

inotify: remove inotify in kernel interface



nothing uses inotify in the kernel, drop it!

Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent 7050c488
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -367,14 +367,6 @@ When: 2.6.33
Why:	Should be implemented in userspace, policy daemon.
Who:	Johannes Berg <johannes@sipsolutions.net>

---------------------------

What:	CONFIG_INOTIFY
When:	2.6.33
Why:	last user (audit) will be converted to the newer more generic
	and more easily maintained fsnotify subsystem
Who:	Eric Paris <eparis@redhat.com>

----------------------------

What:	lock_policy_rwsem_* and unlock_policy_rwsem_* will not be
+0 −6
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@
#include <linux/pagemap.h>
#include <linux/cdev.h>
#include <linux/bootmem.h>
#include <linux/inotify.h>
#include <linux/fsnotify.h>
#include <linux/mount.h>
#include <linux/async.h>
@@ -264,10 +263,6 @@ void inode_init_once(struct inode *inode)
	INIT_RAW_PRIO_TREE_ROOT(&inode->i_data.i_mmap);
	INIT_LIST_HEAD(&inode->i_data.i_mmap_nonlinear);
	i_size_ordered_init(inode);
#ifdef CONFIG_INOTIFY
	INIT_LIST_HEAD(&inode->inotify_watches);
	mutex_init(&inode->inotify_mutex);
#endif
#ifdef CONFIG_FSNOTIFY
	INIT_HLIST_HEAD(&inode->i_fsnotify_mark_entries);
#endif
@@ -413,7 +408,6 @@ int invalidate_inodes(struct super_block *sb)

	down_write(&iprune_sem);
	spin_lock(&inode_lock);
	inotify_unmount_inodes(&sb->s_inodes);
	fsnotify_unmount_inodes(&sb->s_inodes);
	busy = invalidate_list(&sb->s_inodes, &throw_away);
	spin_unlock(&inode_lock);
+0 −15
Original line number Diff line number Diff line
config INOTIFY
	bool "Inotify file change notification support"
	default n
	---help---
	  Say Y here to enable legacy in kernel inotify support.  Inotify is a
	  file change notification system.  It is a replacement for dnotify.
	  This option only provides the legacy inotify in kernel API.  There
	  are no in tree kernel users of this interface since it is deprecated.
	  You only need this if you are loading an out of tree kernel module
	  that uses inotify.

	  For more information, see <file:Documentation/filesystems/inotify.txt>

	  If unsure, say N.

config INOTIFY_USER
	bool "Inotify support for userspace"
	select ANON_INODES
+0 −1
Original line number Diff line number Diff line
obj-$(CONFIG_INOTIFY)		+= inotify.o
obj-$(CONFIG_INOTIFY_USER)	+= inotify_fsnotify.o inotify_user.o

fs/notify/inotify/inotify.c

deleted100644 → 0
+0 −873

File deleted.

Preview size limit exceeded, changes collapsed.

Loading