diff options
author | Mateusz Guzik <mjguzik@gmail.com> | 2024-06-04 17:52:56 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-06-05 17:03:57 +0200 |
commit | dff60734fc7606fabde668ab6a26feacec8787cc (patch) | |
tree | 64a63f7d34ff771da6932a4aac3603b71cb0eca2 /io_uring/xattr.c | |
parent | vfs: stop using user_path_at_empty in do_readlinkat (diff) | |
download | linux-dff60734fc7606fabde668ab6a26feacec8787cc.tar.xz linux-dff60734fc7606fabde668ab6a26feacec8787cc.zip |
vfs: retire user_path_at_empty and drop empty arg from getname_flags
No users after do_readlinkat started doing the job on its own.
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/r/20240604155257.109500-3-mjguzik@gmail.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'io_uring/xattr.c')
-rw-r--r-- | io_uring/xattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/xattr.c b/io_uring/xattr.c index 44905b82eea8..6cf41c3bc369 100644 --- a/io_uring/xattr.c +++ b/io_uring/xattr.c @@ -96,7 +96,7 @@ int io_getxattr_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) path = u64_to_user_ptr(READ_ONCE(sqe->addr3)); - ix->filename = getname_flags(path, LOOKUP_FOLLOW, NULL); + ix->filename = getname_flags(path, LOOKUP_FOLLOW); if (IS_ERR(ix->filename)) { ret = PTR_ERR(ix->filename); ix->filename = NULL; @@ -189,7 +189,7 @@ int io_setxattr_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) path = u64_to_user_ptr(READ_ONCE(sqe->addr3)); - ix->filename = getname_flags(path, LOOKUP_FOLLOW, NULL); + ix->filename = getname_flags(path, LOOKUP_FOLLOW); if (IS_ERR(ix->filename)) { ret = PTR_ERR(ix->filename); ix->filename = NULL; |