Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ceb452e1
Commit
ceb452e1
authored
May 24, 2022
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
io_uring: convert xattr to use io_cmd_type
Signed-off-by:
Jens Axboe
<
axboe@kernel.dk
>
parent
ea5af87d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
io_uring/io_uring.c
io_uring/io_uring.c
+9
-10
No files found.
io_uring/io_uring.c
View file @
ceb452e1
...
...
@@ -979,7 +979,6 @@ struct io_kiocb {
*/
struct
file
*
file
;
struct
io_cmd_data
cmd
;
struct
io_xattr
xattr
;
struct
io_uring_cmd
uring_cmd
;
};
...
...
@@ -4402,7 +4401,7 @@ static int io_renameat(struct io_kiocb *req, unsigned int issue_flags)
static
inline
void
__io_xattr_finish
(
struct
io_kiocb
*
req
)
{
struct
io_xattr
*
ix
=
&
req
->
xattr
;
struct
io_xattr
*
ix
=
io_kiocb_to_cmd
(
req
)
;
if
(
ix
->
filename
)
putname
(
ix
->
filename
);
...
...
@@ -4422,7 +4421,7 @@ static void io_xattr_finish(struct io_kiocb *req, int ret)
static
int
__io_getxattr_prep
(
struct
io_kiocb
*
req
,
const
struct
io_uring_sqe
*
sqe
)
{
struct
io_xattr
*
ix
=
&
req
->
xattr
;
struct
io_xattr
*
ix
=
io_kiocb_to_cmd
(
req
)
;
const
char
__user
*
name
;
int
ret
;
...
...
@@ -4465,7 +4464,7 @@ static int io_fgetxattr_prep(struct io_kiocb *req,
static
int
io_getxattr_prep
(
struct
io_kiocb
*
req
,
const
struct
io_uring_sqe
*
sqe
)
{
struct
io_xattr
*
ix
=
&
req
->
xattr
;
struct
io_xattr
*
ix
=
io_kiocb_to_cmd
(
req
)
;
const
char
__user
*
path
;
int
ret
;
...
...
@@ -4486,7 +4485,7 @@ static int io_getxattr_prep(struct io_kiocb *req,
static
int
io_fgetxattr
(
struct
io_kiocb
*
req
,
unsigned
int
issue_flags
)
{
struct
io_xattr
*
ix
=
&
req
->
xattr
;
struct
io_xattr
*
ix
=
io_kiocb_to_cmd
(
req
)
;
int
ret
;
if
(
issue_flags
&
IO_URING_F_NONBLOCK
)
...
...
@@ -4502,7 +4501,7 @@ static int io_fgetxattr(struct io_kiocb *req, unsigned int issue_flags)
static
int
io_getxattr
(
struct
io_kiocb
*
req
,
unsigned
int
issue_flags
)
{
struct
io_xattr
*
ix
=
&
req
->
xattr
;
struct
io_xattr
*
ix
=
io_kiocb_to_cmd
(
req
)
;
unsigned
int
lookup_flags
=
LOOKUP_FOLLOW
;
struct
path
path
;
int
ret
;
...
...
@@ -4531,7 +4530,7 @@ static int io_getxattr(struct io_kiocb *req, unsigned int issue_flags)
static
int
__io_setxattr_prep
(
struct
io_kiocb
*
req
,
const
struct
io_uring_sqe
*
sqe
)
{
struct
io_xattr
*
ix
=
&
req
->
xattr
;
struct
io_xattr
*
ix
=
io_kiocb_to_cmd
(
req
)
;
const
char
__user
*
name
;
int
ret
;
...
...
@@ -4562,7 +4561,7 @@ static int __io_setxattr_prep(struct io_kiocb *req,
static
int
io_setxattr_prep
(
struct
io_kiocb
*
req
,
const
struct
io_uring_sqe
*
sqe
)
{
struct
io_xattr
*
ix
=
&
req
->
xattr
;
struct
io_xattr
*
ix
=
io_kiocb_to_cmd
(
req
)
;
const
char
__user
*
path
;
int
ret
;
...
...
@@ -4590,7 +4589,7 @@ static int io_fsetxattr_prep(struct io_kiocb *req,
static
int
__io_setxattr
(
struct
io_kiocb
*
req
,
unsigned
int
issue_flags
,
struct
path
*
path
)
{
struct
io_xattr
*
ix
=
&
req
->
xattr
;
struct
io_xattr
*
ix
=
io_kiocb_to_cmd
(
req
)
;
int
ret
;
ret
=
mnt_want_write
(
path
->
mnt
);
...
...
@@ -4617,7 +4616,7 @@ static int io_fsetxattr(struct io_kiocb *req, unsigned int issue_flags)
static
int
io_setxattr
(
struct
io_kiocb
*
req
,
unsigned
int
issue_flags
)
{
struct
io_xattr
*
ix
=
&
req
->
xattr
;
struct
io_xattr
*
ix
=
io_kiocb_to_cmd
(
req
)
;
unsigned
int
lookup_flags
=
LOOKUP_FOLLOW
;
struct
path
path
;
int
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment