projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f84d751
)
[PATCH] Add ->splice_read/splice_write to def_blk_fops
author
Jens Axboe
<axboe@suse.de>
Mon, 1 May 2006 17:59:32 +0000
(19:59 +0200)
committer
Jens Axboe
<axboe@suse.de>
Mon, 1 May 2006 17:59:32 +0000
(19:59 +0200)
It can use the generic handlers.
Signed-off-by: Jens Axboe <axboe@suse.de>
fs/block_dev.c
patch
|
blob
|
history
diff --git
a/fs/block_dev.c
b/fs/block_dev.c
index af88c43043d589a45c20e744d44dd15b557243e4..f5958f413bd1135787e2dc731f92b562c452d390 100644
(file)
--- a/
fs/block_dev.c
+++ b/
fs/block_dev.c
@@
-1104,6
+1104,8
@@
const struct file_operations def_blk_fops = {
.readv = generic_file_readv,
.writev = generic_file_write_nolock,
.sendfile = generic_file_sendfile,
+ .splice_read = generic_file_splice_read,
+ .splice_write = generic_file_splice_write,
};
int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg)