Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 750a8870 authored by Eric Paris's avatar Eric Paris
Browse files

inotify: update the group mask on mark addition



Seperating the addition and update of marks in inotify resulted in a
regression in that inotify never gets events.  The inotify group mask is
always 0.  This mask should be updated any time a new mark is added.

Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent 83cb10f0
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -591,6 +591,10 @@ retry:
	/* match the ref from fsnotify_init_markentry() */
	/* match the ref from fsnotify_init_markentry() */
	fsnotify_put_mark(&tmp_ientry->fsn_entry);
	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:
out_err:
	if (ret < 0)
	if (ret < 0)
		kmem_cache_free(inotify_inode_mark_cachep, tmp_ientry);
		kmem_cache_free(inotify_inode_mark_cachep, tmp_ientry);