From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D373D1C299 for ; Mon, 20 Nov 2023 15:48:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ppz0eHQc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD520C433C7; Mon, 20 Nov 2023 15:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700495326; bh=nex+fKzH0+qHrxuqRWP3dqS+SUCPkXpmGhtV0jmVuQs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ppz0eHQc0ZY9uvj6KWerIA4dvRbY5XMkC6FENWNKzECfONigUUfPZDNl/FRvB9pcs eFjNOg5osyEYLhcD4TyYKeUoYBlZlww3Scct2B8nTFLXSDP55/9ukZmQ0YH27DRXV7 9LJFwZ2BAcDsFVl19l293HZ6MtoIw4ukJrYXnUZVjVYssiCV1ctAKBwP9t0FqxM//k 6Xy+TA+70DUyd8vSM4pqOWNqNkzJt/gE0dmy80y3UwWH2XTsSS7IP7RMlzZN5mavQa duko9TwoZmHuSmlviL8kbz73A3V/aL7tx6pPZEPsZA2cTPrwqmEVs+rPYEvSqyQ5Te msk+GixJM0OwQ== Date: Mon, 20 Nov 2023 16:48:42 +0100 From: Christian Brauner To: Amir Goldstein Cc: Jan Kara , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 2/2] fanotify: allow "weak" fsid when watching a single filesystem Message-ID: <20231120-langsam-eindecken-2cc8ba9954b6@brauner> References: <20231118183018.2069899-1-amir73il@gmail.com> <20231118183018.2069899-3-amir73il@gmail.com> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: > OOPS, missed fsnotify_put_mark(mark); > better add a goto target out_put_mark as this is the second case now. I want to point out that going forward we should be able to make use of scoped cleanup macros. Please see include/linux/cleanup.h. I think we should start making liberal use of this. I know that Peter Ziljstra is already doing so for kernel/sched/.