Skip to contentSkip to conversation

dnotify: patches for tree-watching fsnotify interface

PATCH In review Joris Dolderer 1 participant 1 message Feb 12, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 dnotify: patches for tree-watching fsnotify interface

Modify dnotify for the new tree-watching fsnotify interface: check whether an event came from a child or a far descent. Modify fsnotify_recalc_inode_mask call.

---

fs/notify/dnotify/dnotify.c +0 -0
index 7e54e52..6ef23cf 100644
@@ -71,7 +71,7 @@ static void dnotify_recalc_inode_mask(struct

fsnotify_mark_entry *entry) return;

if (entry->inode)
- fsnotify_recalc_inode_mask(entry->inode);
+ fsnotify_recalc_inode_mask(entry->inode, false);
}

/*
@@ -91,7 +91,12 @@ static int dnotify_handle_event(struct fsnotify_group *group, struct dnotify_struct *dn;
struct dnotify_struct **prev;
struct fown_struct *fown;
- __u32 test_mask = event->mask & ~FS_EVENT_ON_CHILD;
+ __u32 test_mask;
+
+ if (event->mask & FS_EVENT_ON_DESCENT)
+ return 0;
+
+ test_mask = event->mask & ~FS_EVENT_ON_CHILD;

to_tell = event->to_tell;