]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/cifs/cifsfs.c
[CIFS] Vectored and async i/o turned on and correct the
authorSteve French <sfrench@us.ibm.com>
Fri, 18 Nov 2005 01:03:00 +0000 (17:03 -0800)
committerSteve French <sfrench@us.ibm.com>
Fri, 18 Nov 2005 01:03:00 +0000 (17:03 -0800)
commit87c89dd7330735d70cc9912483f6f4c7bc3ff19c
tree4c41a67499a0f2c06cc4da3a8fd419f7548c63b6
parent9e294f1c4d4a5fc0068fcb21f5809ff6e88e49bc
[CIFS] Vectored and async i/o turned on and correct the
writev and aio_write to flush properly.

This is Christoph's patch merged with the new nobrl file operations

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
From: Christoph Hellwig <hch@lst.de>

 - support vectored and async aio ops unconditionally - this is above
   the pagecache and transparent to the fs
 - remove cifs_read_wrapper.  it was only doing silly checks and
   calling generic_file_write in all cases.
 - use do_sync_read/do_sync_write as read/write operations.  They call
   ->readv/->writev which we now always implemente.
 - add the filemap_fdatawrite calls to writev/aio_write which were
   missing previously compared to plain write.  no idea what the point
   behind them is, but let's be consistent at least..

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Steven French <sfrench@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
fs/cifs/cifsfs.c