From e19b55f90f5d651508519e9aaf10c9d101114ef8 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Wed, 18 Aug 2010 12:25:49 -0400 Subject: [PATCH] --- yaml --- r: 210094 b: refs/heads/master c: 5f3f259fa8f1d7969360acfad5307d03c2f53d63 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/notify/fsnotify.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 22b59d5eb250..28134c715b07 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: faa9560ae76ef50a3cbfb1a6afc0343fd8172374 +refs/heads/master: 5f3f259fa8f1d7969360acfad5307d03c2f53d63 diff --git a/trunk/fs/notify/fsnotify.c b/trunk/fs/notify/fsnotify.c index f3e3b355ba7f..59dc7a02bd0c 100644 --- a/trunk/fs/notify/fsnotify.c +++ b/trunk/fs/notify/fsnotify.c @@ -220,7 +220,7 @@ int fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is, struct fsnotify_event *event = NULL; struct vfsmount *mnt; int idx, ret = 0; - bool used_inode = false, used_vfsmount = false; + bool used_inode, used_vfsmount; /* global tests shouldn't care about events on child only the specific event */ __u32 test_mask = (mask & ~FS_EVENT_ON_CHILD); @@ -261,6 +261,8 @@ int fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is, } while (inode_node || vfsmount_node) { + used_inode = used_vfsmount = false; + if (inode_node) { inode_mark = hlist_entry(srcu_dereference(inode_node, &fsnotify_mark_srcu), struct fsnotify_mark, i.i_list);