projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9a6c94
)
io_uring: remove the mode variable in io_file_get_flags
author
Christoph Hellwig
<hch@lst.de>
Tue, 20 Jun 2023 11:32:29 +0000
(13:32 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 20 Jun 2023 15:36:22 +0000
(09:36 -0600)
The variable is only once now, so don't bother with it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link:
https://lore.kernel.org/r/20230620113235.920399-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
patch
|
blob
|
history
diff --git
a/io_uring/io_uring.c
b/io_uring/io_uring.c
index
7e73572
..
2d13f63
100644
(file)
--- a/
io_uring/io_uring.c
+++ b/
io_uring/io_uring.c
@@
-1773,10
+1773,9
@@
static void io_iopoll_req_issued(struct io_kiocb *req, unsigned int issue_flags)
*/
unsigned int io_file_get_flags(struct file *file)
{
- umode_t mode = file_inode(file)->i_mode;
unsigned int res = 0;
- if (S_ISREG(mode))
+ if (S_ISREG(
file_inode(file)->i_
mode))
res |= FFS_ISREG;
if ((file->f_flags & O_NONBLOCK) || (file->f_mode & FMODE_NOWAIT))
res |= FFS_NOWAIT;