Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347906
b: refs/heads/master
c: 8b99c3c
h: refs/heads/master
v: v3
  • Loading branch information
Lino Sanfilippo authored and Eric Paris committed Dec 11, 2012
1 parent a99326b commit d6dd425
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 03a1cec1f17ac1a6041996b3e40f96b5a2f90e1b
refs/heads/master: 8b99c3ccf735a2294c7842d236caa42e543e2c95
10 changes: 5 additions & 5 deletions trunk/fs/notify/inotify/inotify_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,13 +513,13 @@ void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark,
struct fsnotify_event_private_data *fsn_event_priv;
int ret;

i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark);

ignored_event = fsnotify_create_event(NULL, FS_IN_IGNORED, NULL,
FSNOTIFY_EVENT_NONE, NULL, 0,
GFP_NOFS);
if (!ignored_event)
return;

i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark);
goto skip_send_ignore;

event_priv = kmem_cache_alloc(event_priv_cachep, GFP_NOFS);
if (unlikely(!event_priv))
Expand All @@ -541,9 +541,9 @@ void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark,
}

skip_send_ignore:

/* matches the reference taken when the event was created */
fsnotify_put_event(ignored_event);
if (ignored_event)
fsnotify_put_event(ignored_event);

/* remove this mark from the idr */
inotify_remove_from_idr(group, i_mark);
Expand Down

0 comments on commit d6dd425

Please sign in to comment.