Quantcast
Channel: lkml.org : Ganesh Sittampalam
Viewing all articles
Browse latest Browse all 627

Re: [PATCH 2/3 v4] devpts: resolve devpts bind-mounts

$
0
0
Linus Torvalds writes: (Summary) On Mon, Mar 12, 2018 at 5:01 PM, Christian Brauner
<christian.brauner@ubuntu.com> wrote:

[...]

* simplify if condition
Ok, I definitely prefer this simpler version.
Ok, I definitely prefer this simpler version.
We could simplify it even more, though. That end could be just ...
dput(path.dentry);
        if (!err) {
                if (DEVPTS_SB(path.mnt->mnt_sb) == fsi)
                        return path.mnt; I already wrote out "that's
not right, you can't do DEVPTS_SB() without checking s_magic", but
devpts_ptmx_path() will have done that already.

Viewing all articles
Browse latest Browse all 627

Trending Articles