From 4077a0f25b001926f86d35f6236351583bada9a4 Mon Sep 17 00:00:00 2001 From: Mike Marshall Date: Mon, 25 Mar 2019 18:17:10 -0400 Subject: orangefs: pass slot index back to readpage. When userspace deposits more than a page of data into the shared buffer, we'll need to know which slot it is in when we get back to readpage so that we can try to use the extra data to fill some extra pages. Signed-off-by: Mike Marshall Signed-off-by: Martin Brandenburg --- fs/orangefs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/orangefs/file.c') diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index 74292d31d113..68ba5ae7ef5d 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c @@ -47,7 +47,7 @@ static int flush_racache(struct inode *inode) */ ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inode, loff_t *offset, struct iov_iter *iter, size_t total_size, - loff_t readahead_size, struct orangefs_write_range *wr) + loff_t readahead_size, struct orangefs_write_range *wr, int *index_return) { struct orangefs_inode_s *orangefs_inode = ORANGEFS_I(inode); struct orangefs_khandle *handle = &orangefs_inode->refn.khandle; -- cgit v1.2.3