namei: make do_mkdirat() take struct filename
authorDmitry Kadashev <dkadashev@gmail.com>
Thu, 8 Jul 2021 06:34:39 +0000 (13:34 +0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:41:26 +0000 (13:41 -0600)
commit584d3226d665214dc1c498045c253529acdd3134
treeccae2599a445860e7b562cc8fa74c6cd17fa135e
parent0ee50b47532a81ab36046241822d1ecb4e08e76d
namei: make do_mkdirat() take struct filename

Pass in the struct filename pointers instead of the user string, and
update the three callers to do the same. This is heavily based on
commit dbea8d345177 ("fs: make do_renameat2() take struct filename").

This behaves like do_unlinkat() and do_renameat2().

Cc: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dmitry Kadashev <dkadashev@gmail.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20210708063447.3556403-4-dkadashev@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/internal.h
fs/namei.c