path: root/fs/orangefs/orangefs-kernel.h
diff options
authorMartin Brandenburg <martin@omnibond.com>2018-02-16 20:51:24 +0000
committerMike Marshall <hubcap@omnibond.com>2019-05-03 14:32:38 -0400
commitc453dcfc79815760071bd9a7805d4b809fec05cf (patch)
tree69caa47318f5e229f894c4c0bd62665552b754ee /fs/orangefs/orangefs-kernel.h
parentorangefs: service ops done for writeback are not killable (diff)
orangefs: migrate to generic_file_read_iter
Remove orangefs_inode_read. It was used by readpage. Calling wait_for_direct_io directly serves the purpose just as well. There is now no check of the bufmap size in the readpage path. There are already other places the bufmap size is assumed to be greater than PAGE_SIZE. Important to call truncate_inode_pages now in the write path so a subsequent read sees the new data. Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-kernel.h')
1 files changed, 8 insertions, 5 deletions
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h
index 46b9ad1d2a9b..307bbb61819a 100644
--- a/fs/orangefs/orangefs-kernel.h
+++ b/fs/orangefs/orangefs-kernel.h
@@ -369,11 +369,6 @@ ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size);
struct inode *orangefs_iget(struct super_block *sb,
struct orangefs_object_kref *ref);
-ssize_t orangefs_inode_read(struct inode *inode,
- struct iov_iter *iter,
- loff_t *offset,
- loff_t readahead_size);
* defined in devorangefs-req.c
@@ -385,6 +380,14 @@ int is_daemon_in_service(void);
bool __is_daemon_in_service(void);
+ * defined in file.c
+ */
+ssize_t wait_for_direct_io(enum ORANGEFS_io_type, struct inode *, loff_t *,
+ struct iov_iter *, size_t, loff_t);
+ssize_t do_readv_writev(enum ORANGEFS_io_type, struct file *, loff_t *,
+ struct iov_iter *);
* defined in orangefs-utils.c
__s32 fsid_of_op(struct orangefs_kernel_op_s *op);