Return-Path: Received: from mx2.suse.de ([195.135.220.15]:33946 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727700AbeKNWHq (ORCPT ); Wed, 14 Nov 2018 17:07:46 -0500 Date: Wed, 14 Nov 2018 13:04:46 +0100 From: Jan Kara To: Matthew Bobrowski Cc: Amir Goldstein , Jan Kara , linux-api@vger.kernel.org, linux-fsdevel , Steve Grubb Subject: Re: [PATCH v7 1/4] fanotify: return only user requested event types in event mask Message-ID: <20181114120446.GB16849@quack2.suse.cz> References: <812e19281cfb4de116fcb8baff1fcddcd63ceb4d.1541639254.git.mbobrowski@mbobrowski.org> <20181113173811.GB12023@quack2.suse.cz> <20181113235445.GB3132@lithium.mbobrowski.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181113235445.GB3132@lithium.mbobrowski.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed 14-11-18 10:54:46, Matthew Bobrowski wrote: > On Tue, Nov 13, 2018 at 07:53:07PM +0200, Amir Goldstein wrote: > > > > @@ -131,11 +137,7 @@ static bool fanotify_should_send_event(struct fsnotify_iter_info *iter_info, > > > > !(marks_mask & FS_ISDIR & ~marks_ignored_mask)) > > > > return false; > > > > > > Looking into this before merge, this hunk has apparently slipped during > > > some rebase (missing false->0 conversion). > > > > > > > - if (event_mask & FANOTIFY_OUTGOING_EVENTS & > > > > - marks_mask & ~marks_ignored_mask) > > > > - return true; > > > > - > > > > - return false; > > > > + return event_mask & FANOTIFY_OUTGOING_EVENTS & marks_mask; > > > > > > And here we miss & ~marks_ignored_mask, right? > > > > > > I've changed both in the patch I've merged but I'm checking just to be > > > sure... > > > > > FWIW, changes look correct to me. > > Yes, that would be right Jan. Thanks for confirmation. Patches pushed out. Thanks for your work and also to Amir for his review and comments! Honza -- Jan Kara SUSE Labs, CR