aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2006-10-17 12:43:07 -0400
committerJens Axboe <axboe@nelson.home.kernel.dk>2006-10-19 14:53:08 -0400
commit6da61809822c22634a3de2dcb3c60283b836a88a (patch)
tree80bc4105a4eabb221e5b1896b2c8b915a9c90d28 /include/linux
parent62752ee198dca9209b7dee504763e51b11e9e0ca (diff)
[PATCH] Introduce generic_file_splice_write_nolock()
This allows file systems to manage their own i_mutex locking while still re-using the generic_file_splice_write() logic. OCFS2 in particular wants this so that it can order cluster locks within i_mutex. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 853a02f23936..d695ba2346a3 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1758,6 +1758,8 @@ extern ssize_t generic_file_splice_read(struct file *, loff_t *,
1758 struct pipe_inode_info *, size_t, unsigned int); 1758 struct pipe_inode_info *, size_t, unsigned int);
1759extern ssize_t generic_file_splice_write(struct pipe_inode_info *, 1759extern ssize_t generic_file_splice_write(struct pipe_inode_info *,
1760 struct file *, loff_t *, size_t, unsigned int); 1760 struct file *, loff_t *, size_t, unsigned int);
1761extern ssize_t generic_file_splice_write_nolock(struct pipe_inode_info *,
1762 struct file *, loff_t *, size_t, unsigned int);
1761extern ssize_t generic_splice_sendpage(struct pipe_inode_info *pipe, 1763extern ssize_t generic_splice_sendpage(struct pipe_inode_info *pipe,
1762 struct file *out, loff_t *, size_t len, unsigned int flags); 1764 struct file *out, loff_t *, size_t len, unsigned int flags);
1763extern long do_splice_direct(struct file *in, loff_t *ppos, struct file *out, 1765extern long do_splice_direct(struct file *in, loff_t *ppos, struct file *out,