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>
Fri, 13 Aug 2021 14:10:46 +0000 (08:10 -0600)
commitd980fe10f1f9b6cd0c80fd5e96141481d5844aeb
tree2e701a069e40115e1dab19465adc8a28ffe7af7b
parent9d96ea38873f79ccdc7ba06201c35cb5490f6e10
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