[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160714184800.GH4916@odin.tremily.us>
Date: Thu, 14 Jul 2016 11:48:00 -0700
From: "W. Trevor King" <wking@...mily.us>
To: Andrey Vagin <avagin@...nvz.org>
Cc: linux-kernel@...r.kernel.org, criu@...nvz.org,
linux-api@...r.kernel.org, containers@...ts.linux-foundation.org,
linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH 3/5] nsfs: add ioctl to get an owning user namespace for
ns file descriptor
On Thu, Jul 14, 2016 at 11:20:17AM -0700, Andrey Vagin wrote:
> +int open_related_ns(struct ns_common *ns,
> + struct ns_common *(*get_ns)(struct ns_common *ns))
> +{
> + struct path path = {};
> + struct file *f;
> + void *err;
> + int fd;
> +
> + fd = get_unused_fd_flags(O_CLOEXEC);
> + if (fd < 0)
> + return fd;
> +
> + while (1) {
> + struct ns_common *parent;
I think you want to rename this variable to ‘relative’ or some other
more-generic term [1] to echo ‘related’ in the function name.
Cheers,
Trevor
[1]: https://github.com/avagin/linux-task-diag/commit/7fad8ff3fc4110bebf0920cec2388390b3bd2238#commitcomment-18223391
--
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists