# Re: \[PATCH v3 6/7\] userns: Replace in\_userns with current\_in\_userns

- From: James Morris \<jmorris@namei.org\>
- Date: 2015-11-18 00:04:27 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2015/11/101732
- Thread: https://ratatoskr.run/linux-bcache/2015/11/101724/t.md

```text
On Tue, 17 Nov 2015, Seth Forshee wrote:

> All current callers of in_userns pass current_user_ns as the
> first argument. Simplify by replacing in_userns with
> current_in_userns which checks whether current_user_ns is in the
> namespace supplied as an argument.
> 
> Signed-off-by: Seth Forshee <redacted>

Nice cleanup.


Acked-by: James Morris <redacted>

-- 
James Morris
[ref]

```
