scst/include/backport.h: Port to Linux kernel v6.10

Support for the following fs layer changes in the Linux kernel v6.10:

- 7c98f7cb8fda ("remove call_{read,write}_iter() functions")
This commit is contained in:
Gleb Chesnokov
2024-07-08 10:50:39 +03:00
parent aa2c925429
commit ad35eef335

View File

@@ -553,10 +553,12 @@ typedef unsigned int __poll_t;
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) && \
LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
(LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) || \
LINUX_VERSION_CODE >= KERNEL_VERSION(6, 10, 0))
/*
* See also commit bb7462b6fd64 ("vfs: use helpers for calling
* f_op->{read,write}_iter()").
* f_op->{read,write}_iter()") # v4.11.
* See also commit 7c98f7cb8fda ("remove call_{read,write}_iter() functions") # v6.10.
*/
static inline ssize_t call_read_iter(struct file *file, struct kiocb *kio,
struct iov_iter *iter)