fs: Pass an iocb to generic_perform_write()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 20 Feb 2022 04:19:49 +0000 (23:19 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 1 Apr 2022 18:40:44 +0000 (14:40 -0400)
commit800ba29547e16d5fbe67ca764ba660e049e9f1bf
tree1650c21b20976a7af8c9cd3e0b814f20b52b0866
parentb2403a61308533c576c9dd783fcb73a9186e0b37
fs: Pass an iocb to generic_perform_write()

We can extract both the file pointer and the pos from the iocb.
This simplifies each caller as well as allowing generic_perform_write()
to see more of the iocb contents in the future.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Reviewed-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ceph/file.c
fs/ext4/file.c
fs/f2fs/file.c
fs/nfs/file.c
include/linux/fs.h
mm/filemap.c