]> git.ipfire.org Git - thirdparty/linux.git/commit
fs: change write_begin/write_end interface to take struct kiocb *
authorTaotao Chen <chentaotao@didiglobal.com>
Wed, 16 Jul 2025 09:36:06 +0000 (09:36 +0000)
committerChristian Brauner <brauner@kernel.org>
Wed, 16 Jul 2025 12:48:18 +0000 (14:48 +0200)
commite9d8e2bf23206825ca9b4d3caf587945ba807939
treec5391362a53443d64a1fa8a95e3a40989c0c10d2
parent048832a3f4003113c3a0f060b08376c103622099
fs: change write_begin/write_end interface to take struct kiocb *

Change the address_space_operations callbacks write_begin() and
write_end() to take struct kiocb * as the first argument instead of
struct file *.

Update all affected function prototypes, implementations, call sites,
and related documentation across VFS, filesystems, and block layer.

Part of a series refactoring address_space_operations write_begin and
write_end callbacks to use struct kiocb for passing write context and
flags.

Signed-off-by: Taotao Chen <chentaotao@didiglobal.com>
Link: https://lore.kernel.org/20250716093559.217344-4-chentaotao@didiglobal.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
45 files changed:
Documentation/filesystems/locking.rst
Documentation/filesystems/vfs.rst
block/fops.c
fs/adfs/inode.c
fs/affs/file.c
fs/bcachefs/fs-io-buffered.c
fs/bcachefs/fs-io-buffered.h
fs/bfs/file.c
fs/buffer.c
fs/ceph/addr.c
fs/ecryptfs/mmap.c
fs/exfat/file.c
fs/exfat/inode.c
fs/ext2/inode.c
fs/ext4/inode.c
fs/f2fs/data.c
fs/fat/inode.c
fs/fuse/file.c
fs/hfs/hfs_fs.h
fs/hfs/inode.c
fs/hfsplus/hfsplus_fs.h
fs/hfsplus/inode.c
fs/hostfs/hostfs_kern.c
fs/hpfs/file.c
fs/hugetlbfs/inode.c
fs/jffs2/file.c
fs/jfs/inode.c
fs/libfs.c
fs/minix/inode.c
fs/nfs/file.c
fs/nilfs2/inode.c
fs/ntfs3/file.c
fs/ntfs3/inode.c
fs/ntfs3/ntfs_fs.h
fs/ocfs2/aops.c
fs/omfs/file.c
fs/orangefs/inode.c
fs/ubifs/file.c
fs/udf/inode.c
fs/ufs/inode.c
fs/vboxsf/file.c
include/linux/buffer_head.h
include/linux/fs.h
mm/filemap.c
mm/shmem.c