Skip to contentSkip to conversation

inotify: event ordering

PATCH New Robert Love 1 participant 1 message Jul 13, 2005 Fsnotify: filesystem notification infrastructure

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 inotify: event ordering

Linus,

Attached patch rearranges the event ordering for "open" to be consistent with the ordering of the other events.

Patch is against current git tree. Please, apply.

Robert Love

 include/linux/fsnotify.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
include/linux/fsnotify.h +1 -1
diff -urN linux-inotify/include/linux/fsnotify.h linux/include/linux/fsnotify.h
@@ -125,8 +125,8 @@
 	if (S_ISDIR(inode->i_mode))
 		mask |= IN_ISDIR;
 
-	inotify_inode_queue_event(inode, mask, 0, NULL);
 	inotify_dentry_parent_queue_event(dentry, mask, 0, dentry->d_name.name);
+	inotify_inode_queue_event(inode, mask, 0, NULL);	
 }
 
 /*