splice: add block device specific splice buffered write method
authorJens Axboe <jens.axboe@oracle.com>
Wed, 19 May 2010 19:01:35 +0000 (21:01 +0200)
committerJens Axboe <axboe@nehalem.(none)>
Thu, 20 May 2010 08:43:34 +0000 (10:43 +0200)
commitf9f8b5480eab28a15498e0f4af566c82a68f94fd
treea92021f2a2034c17b5e8ebe6ff8e5ab79726dc32
parent2f616808378d5188784b61ec9c34d81e68a8c1db
splice: add block device specific splice buffered write method

Block device write procedure is different from regular file:
 - Actual write performed without i_mutex.
 - It has no metadata, so generic_osync_inode(O_SYNCMETEDATA) can not livelock.
 - We do not have to worry about S_ISUID/S_ISGID bits.

Modified by Jens to better conform with the splice helpers and to apply
on top of the splice branch.

Signed-off-by: Dmitri Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/block_dev.c
fs/splice.c
include/linux/fs.h