Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207617
b: refs/heads/master
c: 6f3a539
h: refs/heads/master
i:
  207615: 2cf5886
v: v3
  • Loading branch information
Eric Paris committed Jul 28, 2010
1 parent f872b13 commit 29e9994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f0553af054d31f48a75fddd3ef8beb5c39715019
refs/heads/master: 6f3a539e3bd8ed2eafa532443723d56896153a00
13 changes: 1 addition & 12 deletions trunk/fs/notify/notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,25 +314,14 @@ void fsnotify_flush_notify(struct fsnotify_group *group)

static void initialize_event(struct fsnotify_event *event)
{
event->holder.event = NULL;
INIT_LIST_HEAD(&event->holder.event_list);
atomic_set(&event->refcnt, 1);

spin_lock_init(&event->lock);

event->path.dentry = NULL;
event->path.mnt = NULL;
event->inode = NULL;
event->data_type = FSNOTIFY_EVENT_NONE;

INIT_LIST_HEAD(&event->private_data_list);

event->to_tell = NULL;

event->file_name = NULL;
event->name_len = 0;

event->sync_cookie = 0;
}

/*
Expand All @@ -353,7 +342,7 @@ struct fsnotify_event *fsnotify_create_event(struct inode *to_tell, __u32 mask,
{
struct fsnotify_event *event;

event = kmem_cache_alloc(fsnotify_event_cachep, gfp);
event = kmem_cache_zalloc(fsnotify_event_cachep, gfp);
if (!event)
return NULL;

Expand Down

0 comments on commit 29e9994

Please sign in to comment.