fsnotify: add flags to fsnotify_mark_entries
To differentiate between inode and vfsmount (or other future) types of
marks we add a flags field and set the inode bit on inode marks (the only
currently supported type of mark)
Signed-off-by: Eric Paris <eparis@redhat.com>
diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c
index 6731408..b000658 100644
--- a/fs/notify/inode_mark.c
+++ b/fs/notify/inode_mark.c
@@ -322,6 +322,8 @@
if (unlikely(!inode))
return -EINVAL;
+ entry->flags = FSNOTIFY_MARK_FLAG_INODE;
+
/*
* if this group isn't being testing for inode type events we need
* to start testing