-
- Downloads
keep iocb_flags() result cached in struct file
* calculate at the time we set FMODE_OPENED (do_dentry_open() for normal opens, alloc_file() for pipe()/socket()/etc.) * update when handling F_SETFL * keep in a new field - file->f_iocb_flags; since that thing is needed only before the refcount reaches zero, we can put it into the same anon union where ->f_rcuhead and ->f_llist live - those are used only after refcount reaches zero. Reviewed-by:Christian Brauner (Microsoft) <brauner@kernel.org> Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
Showing
- drivers/nvme/target/io-cmd-file.c 1 addition, 1 deletiondrivers/nvme/target/io-cmd-file.c
- fs/aio.c 1 addition, 1 deletionfs/aio.c
- fs/fcntl.c 1 addition, 0 deletionsfs/fcntl.c
- fs/file_table.c 1 addition, 0 deletionsfs/file_table.c
- fs/io_uring.c 1 addition, 1 deletionfs/io_uring.c
- fs/open.c 1 addition, 0 deletionsfs/open.c
- include/linux/fs.h 2 additions, 3 deletionsinclude/linux/fs.h
Loading
Please register or sign in to comment