/* Recalculate the mask of events relevant to a given inode locked.  */
static void fsnotify_recalc_inode_mask_locked(struct inode *inode)
/* Recalculate the mask of events relevant to a given inode locked.  */
static void fsnotify_recalc_inode_mask_locked(struct inode *inode)
{
	struct fsnotify_mark_entry *entry;
	struct hlist_node *pos;
	__u32 new_mask = 0;
	assert_spin_locked(&inode->i_lock);
	hlist_for_each_entry(entry, pos, &inode->i_fsnotify_mark_entries, i_list)
		new_mask |= entry->mask;
	inode->i_fsnotify_mask = new_mask;
}