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

2025-07-02 Thread Taotao Chen
在 2025/6/27 23:45, Matthew Wilcox 写道: On Fri, Jun 27, 2025 at 11:03:11AM +, 陈涛涛 Taotao Chen wrote: diff --git a/fs/exfat/file.c b/fs/exfat/file.c index 841a5b18e3df..fdc2fa1e5c41 100644 --- a/fs/exfat/file.c +++ b/fs/exfat/file.c @@ -532,10 +532,12 @@ int exfat_file_fsync(struct file *filp

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

2025-07-02 Thread Taotao Chen
在 2025/6/27 23:52, Matthew Wilcox 写道: On Fri, Jun 27, 2025 at 11:03:11AM +, 陈涛涛 Taotao Chen wrote: @@ -1399,13 +1400,10 @@ static int write_end_fn(handle_t *handle, struct inode *inode, } /* - * We need to pick up the new inode size which generic_commit_write gave us - * `file' c

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

2025-06-27 Thread Matthew Wilcox
On Fri, Jun 27, 2025 at 11:03:11AM +, 陈涛涛 Taotao Chen wrote: > @@ -1399,13 +1400,10 @@ static int write_end_fn(handle_t *handle, struct > inode *inode, > } > > /* > - * We need to pick up the new inode size which generic_commit_write gave us > - * `file' can be NULL - eg, when called from

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

2025-06-27 Thread Matthew Wilcox
On Fri, Jun 27, 2025 at 11:03:11AM +, 陈涛涛 Taotao Chen wrote: > diff --git a/fs/exfat/file.c b/fs/exfat/file.c > index 841a5b18e3df..fdc2fa1e5c41 100644 > --- a/fs/exfat/file.c > +++ b/fs/exfat/file.c > @@ -532,10 +532,12 @@ int exfat_file_fsync(struct file *filp, loff_t start, > loff_t end, in

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

2025-06-27 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