Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190865
b: refs/heads/master
c: 3dbc6fb
h: refs/heads/master
i:
  190863: 2069509
v: v3
  • Loading branch information
Eric Paris committed May 14, 2010
1 parent b5ce812 commit e1677c8
Show file tree
Hide file tree
Showing 2 changed files with 3 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: e7b702b1a8f2a6961367da903217e669be0f099f
refs/heads/master: 3dbc6fb6a3c8a7dc164ae330ab024a3fe65ae53e
7 changes: 2 additions & 5 deletions trunk/fs/notify/inotify/inotify_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,16 +578,13 @@ static int inotify_new_watch(struct fsnotify_group *group,
/* return the watch descriptor for this new entry */
ret = tmp_ientry->wd;

/* match the ref from fsnotify_init_markentry() */
fsnotify_put_mark(&tmp_ientry->fsn_entry);

/* if this mark added a new event update the group mask */
if (mask & ~group->mask)
fsnotify_recalc_group_mask(group);

out_err:
if (ret < 0)
kmem_cache_free(inotify_inode_mark_cachep, tmp_ientry);
/* match the ref from fsnotify_init_markentry() */
fsnotify_put_mark(&tmp_ientry->fsn_entry);

return ret;
}
Expand Down

0 comments on commit e1677c8

Please sign in to comment.