Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-9183 llite: handle removal the offset argument of direct_IO
[fs/lustre-release.git]
/
lustre
/
llite
/
rw26.c
diff --git
a/lustre/llite/rw26.c
b/lustre/llite/rw26.c
index
80eb9fc
..
7dd9510
100644
(file)
--- a/
lustre/llite/rw26.c
+++ b/
lustre/llite/rw26.c
@@
-345,9
+345,15
@@
ll_direct_IO(
# ifndef HAVE_IOV_ITER_RW
int rw,
# endif
# ifndef HAVE_IOV_ITER_RW
int rw,
# endif
- struct kiocb *iocb, struct iov_iter *iter,
- loff_t file_offset)
+ struct kiocb *iocb, struct iov_iter *iter
+# ifndef HAVE_DIRECTIO_2ARGS
+ , loff_t file_offset
+# endif
+ )
{
{
+#ifdef HAVE_DIRECTIO_2ARGS
+ loff_t file_offset = iocb->ki_pos;
+#endif
struct ll_cl_context *lcc;
const struct lu_env *env;
struct cl_io *io;
struct ll_cl_context *lcc;
const struct lu_env *env;
struct cl_io *io;