]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs: make do_renameat2() take struct filename
authorJens Axboe <axboe@kernel.dk>
Sat, 26 Sep 2020 23:20:17 +0000 (17:20 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2023 10:39:18 +0000 (11:39 +0100)
commit214f80e25176eb4d756bc9fe528ef7bf23d2f9a1
tree63f5bd2c8649590a5ee2b3f4eb89917c668dfe71
parent52cfde6bbf64f7f058efa805c6dbb6332d4de6fa
fs: make do_renameat2() take struct filename

[ Upstream commit e886663cfd029b64a1d8da7efae7014526d884e9 ]

Pass in the struct filename pointers instead of the user string, and
update the three callers to do the same.

This behaves like do_unlinkat(), which also takes a filename struct and
puts it when it is done. Converting callers is then trivial.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/internal.h
fs/namei.c