[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wiQaqgkZiNX6+zG5kqOPWSiGKh6iis_n+Z0dfTBJeQLCg@mail.gmail.com>
Date: Sat, 22 Feb 2020 18:22:43 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: linux-fsdevel <linux-fsdevel@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [RFC][PATCH v2 22/34] merging pick_link() with get_link(), part 5
Ok, one step back:
On Sat, Feb 22, 2020 at 5:22 PM Al Viro <viro@...iv.linux.org.uk> wrote:
>
> + if (err > 0)
> + return get_link(nd);
> + else
> + return ERR_PTR(err);
> }
.. and two steps forward, as you then entirely remove the code I just
complained about.
> - err = step_into(nd, flags, dentry, inode, seq);
> - if (!err)
> - return NULL;
> - else if (err > 0)
> - return get_link(nd);
> - else
> - return ERR_PTR(err);
> + return step_into(nd, flags, dentry, inode, seq);
I'm waiting with bated breath if the next patch will then remove the
new odd if-return-else thing. But I'm not going to peek, it's going to
be a surprise.
Linus
Powered by blists - more mailing lists