]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a1c5efdf097c767062dc8c893ec30dba8e6b677
treeccae2599a445860e7b562cc8fa74c6cd17fa135e
parent2ba68356db652f09c9b844e86aa58e0febd0f2d6
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