]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vfs: stop using user_path_at_empty in do_readlinkat
authorMateusz Guzik <mjguzik@gmail.com>
Tue, 4 Jun 2024 15:52:55 +0000 (17:52 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 5 Jun 2024 15:03:56 +0000 (17:03 +0200)
commit969ce92da3112e05d1a70c344f8740a85e933f2e
tree7d985eb66b5569ebcb8cf1146339fa7e5bd2941b
parentca86a5d2f9feed16e11023891c8c70aa57ced24e
vfs: stop using user_path_at_empty in do_readlinkat

It is the only consumer and it saddles getname_flags with an argument set
to NULL by everyone else.

Instead the routine can do the empty check on its own.

Then user_path_at_empty can get retired and getname_flags can lose the
argument.

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/r/20240604155257.109500-2-mjguzik@gmail.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/stat.c