Re: [PATCH v2 3/5] fs: change write_begin/write_end interface to take struct kiocb *

2025-06-26 Thread Chen Taotao
在 2025/6/25 16:04, Christian Brauner 写道: On Tue, Jun 24, 2025 at 01:51:51PM +0100, Matthew Wilcox wrote: On Tue, Jun 24, 2025 at 12:12:08PM +, 陈涛涛 Taotao Chen wrote: -static int blkdev_write_end(struct file *file, struct address_space *mapping, +static int blkdev_write_end(struct kiocb *i

Re: [PATCH v2 3/5] fs: change write_begin/write_end interface to take struct kiocb *

2025-06-25 Thread Matthew Wilcox
On Tue, Jun 24, 2025 at 12:12:08PM +, 陈涛涛 Taotao Chen wrote: > -static int blkdev_write_end(struct file *file, struct address_space *mapping, > +static int blkdev_write_end(struct kiocb *iocb, struct address_space > *mapping, > loff_t pos, unsigned len, unsigned copied, struct fo

Re: [PATCH v2 3/5] fs: change write_begin/write_end interface to take struct kiocb *

2025-06-25 Thread Christian Brauner
On Tue, Jun 24, 2025 at 01:51:51PM +0100, Matthew Wilcox wrote: > On Tue, Jun 24, 2025 at 12:12:08PM +, 陈涛涛 Taotao Chen wrote: > > -static int blkdev_write_end(struct file *file, struct address_space > > *mapping, > > +static int blkdev_write_end(struct kiocb *iocb, struct address_space > > *

[PATCH v2 3/5] fs: change write_begin/write_end interface to take struct kiocb *

2025-06-24 Thread 陈涛涛 Taotao Chen
From: Taotao Chen 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