]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
[PATCH] Streamline generic_file_* interfaces and filemap cleanups
authorBadari Pulavarty <pbadari@us.ibm.com>
Sun, 1 Oct 2006 06:28:48 +0000 (23:28 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:28 +0000 (00:39 -0700)
commit543ade1fc901db4c3dbe9fb27241fb977f1f3eea
treecdd1a1f67a718adf71e92fe08e4b3d33bf3dbadc
parentee0b3e671baff681d69fbf0db33b47603c0a8280
[PATCH] Streamline generic_file_* interfaces and filemap cleanups

This patch cleans up generic_file_*_read/write() interfaces.  Christoph
Hellwig gave me the idea for this clean ups.

In a nutshell, all filesystems should set .aio_read/.aio_write methods and use
do_sync_read/ do_sync_write() as their .read/.write methods.  This allows us
to cleanup all variants of generic_file_* routines.

Final available interfaces:

generic_file_aio_read() - read handler
generic_file_aio_write() - write handler
generic_file_aio_write_nolock() - no lock write handler

__generic_file_aio_write_nolock() - internal worker routine

Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
27 files changed:
drivers/char/raw.c
fs/adfs/file.c
fs/affs/file.c
fs/bfs/file.c
fs/block_dev.c
fs/ext2/file.c
fs/fuse/file.c
fs/hfs/inode.c
fs/hfsplus/inode.c
fs/hostfs/hostfs_kern.c
fs/hpfs/file.c
fs/jffs/inode-v23.c
fs/jffs2/file.c
fs/jfs/file.c
fs/minix/file.c
fs/ntfs/file.c
fs/qnx4/file.c
fs/ramfs/file-mmu.c
fs/ramfs/file-nommu.c
fs/read_write.c
fs/smbfs/file.c
fs/sysv/file.c
fs/udf/file.c
fs/ufs/file.c
fs/xfs/linux-2.6/xfs_lrw.c
include/linux/fs.h
mm/filemap.c