[PATCH v3 3/4] fs: change write_begin/write_end interface to take struct kiocb *
Matthew Wilcox
willy at infradead.org
Fri Jun 27 15:52:15 UTC 2025
On Fri, Jun 27, 2025 at 11:03:11AM +0000, 陈涛涛 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 page_symlink().
> - *
Why delete this? It seems still true to me, other than s/file/iocb/
> * ext4 never places buffers on inode->i_mapping->i_private_list. metadata
> * buffers are managed internally.
> */
> -static int ext4_write_end(struct file *file,
> +static int ext4_write_end(const struct kiocb *iocb,
> struct address_space *mapping,
> loff_t pos, unsigned len, unsigned copied,
> struct folio *folio, void *fsdata)
More information about the Intel-gfx
mailing list