Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207711
b: refs/heads/master
c: 20dee62
h: refs/heads/master
i:
  207709: e576f70
  207707: a43c497
  207703: 76a58da
  207695: 5fa894c
  207679: 652f8c2
v: v3
  • Loading branch information
Eric Paris committed Jul 28, 2010
1 parent eefb1dc commit 6a13f05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 44b350fc23e36e95c8e042b7ded66217ea2b9d72
refs/heads/master: 20dee624ca40db227aa70cb3f44d2d6cb4fdbab4
2 changes: 2 additions & 0 deletions trunk/fs/notify/fsnotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ EXPORT_SYMBOL_GPL(fsnotify);

static __init int fsnotify_init(void)
{
BUG_ON(hweight32(ALL_FSNOTIFY_EVENTS) != 23);

return init_srcu_struct(&fsnotify_grp_srcu);
}
subsys_initcall(fsnotify_init);
9 changes: 9 additions & 0 deletions trunk/include/linux/fsnotify_backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@

#define FS_MOVE (FS_MOVED_FROM | FS_MOVED_TO)

#define ALL_FSNOTIFY_EVENTS (FS_ACCESS | FS_MODIFY | FS_ATTRIB | \
FS_CLOSE_WRITE | FS_CLOSE_NOWRITE | FS_OPEN | \
FS_MOVED_FROM | FS_MOVED_TO | FS_CREATE | \
FS_DELETE | FS_DELETE_SELF | FS_MOVE_SELF | \
FS_UNMOUNT | FS_Q_OVERFLOW | FS_IN_IGNORED | \
FS_OPEN_PERM | FS_ACCESS_PERM | FS_EXCL_UNLINK | \
FS_IN_ISDIR | FS_IN_ONESHOT | FS_DN_RENAME | \
FS_DN_MULTISHOT | FS_EVENT_ON_CHILD)

struct fsnotify_group;
struct fsnotify_event;
struct fsnotify_mark;
Expand Down

0 comments on commit 6a13f05

Please sign in to comment.