]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit46bc36cde9c2a5ba332264c6f01be06b0adc6c67
tree1650c21b20976a7af8c9cd3e0b814f20b52b0866
parent32e8ed38a60e5a5bb37937b3edacba42e974d2ef
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