From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753076AbcDOAum (ORCPT ); Thu, 14 Apr 2016 20:50:42 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:59590 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752802AbcDOAuk (ORCPT ); Thu, 14 Apr 2016 20:50:40 -0400 Date: Fri, 15 Apr 2016 01:50:38 +0100 From: Al Viro To: Andrey Ulanov Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] namespace: update event counter when umounting a deleted dentry Message-ID: <20160415005038.GU25498@ZenIV.linux.org.uk> References: <1460677712-26909-1-git-send-email-andreyu@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1460677712-26909-1-git-send-email-andreyu@google.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 14, 2016 at 04:48:32PM -0700, Andrey Ulanov wrote: > +++ b/fs/namespace.c > @@ -1562,6 +1562,7 @@ void __detach_mounts(struct dentry *dentry) > goto out_unlock; > > lock_mount_hash(); > + event++; That part makes sense. > -/* > +/* > * Is the caller allowed to modify his namespace? > */ > static inline bool may_mount(void) > @@ -1765,6 +1766,7 @@ void drop_collected_mounts(struct vfsmount *mnt) > { > namespace_lock(); > lock_mount_hash(); > + event++; ... but what the hell is this one for?