inotify: move control flags from mask to mark flags
[linux-2.6-microblaze.git] / fs / notify / inotify / inotify_fsnotify.c
index d92d7b0..49cfe2a 100644 (file)
@@ -122,7 +122,7 @@ int inotify_handle_inode_event(struct fsnotify_mark *inode_mark, u32 mask,
                fsnotify_destroy_event(group, fsn_event);
        }
 
-       if (inode_mark->mask & IN_ONESHOT)
+       if (inode_mark->flags & FSNOTIFY_MARK_FLAG_IN_ONESHOT)
                fsnotify_destroy_mark(inode_mark, group);
 
        return 0;