Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1379394

Re: [PATCH] namespace: update event counter when umounting a deleted dentry

From Al Viro <viro@ZenIV.linux.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH] namespace: update event counter when umounting a deleted dentry
Date 2016-04-15 03:00 +0200
Message-ID <ro0h4-2BJ-5@gated-at.bofh.it> (permalink)
References <rnZbj-1Ny-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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?

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] namespace: update event counter when umounting a deleted dentry Andrey Ulanov <andreyu@google.com> - 2016-04-15 01:50 +0200
  Re: [PATCH] namespace: update event counter when umounting a deleted  dentry Al Viro <viro@ZenIV.linux.org.uk> - 2016-04-15 03:00 +0200

csiph-web