提交 b57332b4 编写于 作者: A Al Viro

constify iov_iter_count() and iter_is_iovec()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 c3a69024
...@@ -110,12 +110,12 @@ int iov_iter_npages(const struct iov_iter *i, int maxpages); ...@@ -110,12 +110,12 @@ int iov_iter_npages(const struct iov_iter *i, int maxpages);
const void *dup_iter(struct iov_iter *new, struct iov_iter *old, gfp_t flags); const void *dup_iter(struct iov_iter *new, struct iov_iter *old, gfp_t flags);
static inline size_t iov_iter_count(struct iov_iter *i) static inline size_t iov_iter_count(const struct iov_iter *i)
{ {
return i->count; return i->count;
} }
static inline bool iter_is_iovec(struct iov_iter *i) static inline bool iter_is_iovec(const struct iov_iter *i)
{ {
return !(i->type & (ITER_BVEC | ITER_KVEC | ITER_PIPE)); return !(i->type & (ITER_BVEC | ITER_KVEC | ITER_PIPE));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册