diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2006-10-17 18:43:07 +0200 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-10-19 20:53:08 +0200 |
commit | 6da61809822c22634a3de2dcb3c60283b836a88a (patch) | |
tree | 80bc4105a4eabb221e5b1896b2c8b915a9c90d28 /include/linux/fs.h | |
parent | 62752ee198dca9209b7dee504763e51b11e9e0ca (diff) | |
download | kernel_samsung_smdk4412-6da61809822c22634a3de2dcb3c60283b836a88a.zip kernel_samsung_smdk4412-6da61809822c22634a3de2dcb3c60283b836a88a.tar.gz kernel_samsung_smdk4412-6da61809822c22634a3de2dcb3c60283b836a88a.tar.bz2 |
[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/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 853a02f..d695ba2 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 *, struct pipe_inode_info *, size_t, unsigned int); extern ssize_t generic_file_splice_write(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int); +extern ssize_t generic_file_splice_write_nolock(struct pipe_inode_info *, + struct file *, loff_t *, size_t, unsigned int); extern ssize_t generic_splice_sendpage(struct pipe_inode_info *pipe, struct file *out, loff_t *, size_t len, unsigned int flags); extern long do_splice_direct(struct file *in, loff_t *ppos, struct file *out, |