Re: [RFC][PATCH] inotify 0.13

From: Robert Love
Date: Wed Oct 06 2004 - 16:08:20 EST


On Wed, 2004-10-06 at 16:41 -0400, John McCutchan wrote:

> -MOVED_FROM/MOVED_TO cookie code (me)

Forgot to update the functions in the case of !CONFIG_INOTIFY.

Attached.

Robert Love

Update functions in case of !CONFIG_INOTIFY

Signed-Off-By: Robert Love <rml@xxxxxxxxxx>

include/linux/inotify.h | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)

diff -urN linux-inotify-0.13/include/linux/inotify.h linux/include/linux/inotify.h
--- linux-inotify-0.13/include/linux/inotify.h 2004-10-06 16:47:54.470547048 -0400
+++ linux/include/linux/inotify.h 2004-10-06 16:53:21.210874968 -0400
@@ -91,12 +91,13 @@

#ifdef CONFIG_INOTIFY

-extern void inotify_inode_queue_event(struct inode *, __u32, __u32, const char *);
+extern void inotify_inode_queue_event(struct inode *, __u32, __u32,
+ const char *);
extern void inotify_dentry_parent_queue_event(struct dentry *, __u32, __u32,
const char *);
extern void inotify_super_block_umount(struct super_block *);
extern void inotify_inode_is_dead(struct inode *);
-extern __u32 inotify_get_cookie (void);
+extern __u32 inotify_get_cookie(void);

/* this could be kstrdup if only we could add that to lib/string.c */
static inline char * inotify_oldname_init(struct dentry *old_dentry)
@@ -117,13 +118,13 @@
#else

static inline void inotify_inode_queue_event(struct inode *inode,
- __u32 mask,
+ __u32 mask, __u32 cookie,
const char *filename)
{
}

static inline void inotify_dentry_parent_queue_event(struct dentry *dentry,
- __u32 mask,
+ __u32 mask, __u32 cookie,
const char *filename)
{
}