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

Commit ff8d6e98 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin Committed by Eric Paris
Browse files

fanotify: drop duplicate pr_debug statement



This reminded me... you have two pr_debugs in fanotify_should_send_event
which output redundant information. Maybe you intended it like that so
it is selectable how much log spam you want, or if not you may want to
apply this patch.

Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@sophos.com>
Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent 2eebf582
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -165,9 +165,6 @@ static bool fanotify_should_send_event(struct fsnotify_group *group,
		 "mask=%x data=%p data_type=%d\n", __func__, group, to_tell,
		 "mask=%x data=%p data_type=%d\n", __func__, group, to_tell,
		 inode_mark, vfsmnt_mark, event_mask, data, data_type);
		 inode_mark, vfsmnt_mark, event_mask, data, data_type);


	pr_debug("%s: group=%p vfsmount_mark=%p inode_mark=%p mask=%x\n",
		 __func__, group, vfsmnt_mark, inode_mark, event_mask);

	/* sorry, fanotify only gives a damn about files and dirs */
	/* sorry, fanotify only gives a damn about files and dirs */
	if (!S_ISREG(to_tell->i_mode) &&
	if (!S_ISREG(to_tell->i_mode) &&
	    !S_ISDIR(to_tell->i_mode))
	    !S_ISDIR(to_tell->i_mode))