OSDN Git Service

d_path: make prepend_name() boolean
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 18 May 2021 02:41:11 +0000 (22:41 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 19 May 2021 00:08:12 +0000 (20:08 -0400)
commit95b55c42f65af3fb9e2dceaf4d8dde522c0472d3
tree73745628a5f0508c8a1c826cdac471c58c468ae4
parent01a4428ee7068875995ee27e9ba5503874f23e3b
d_path: make prepend_name() boolean

It returns only 0 or -ENAMETOOLONG and both callers only check if
the result is negative.  Might as well return true on success and
false on failure...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/d_path.c