Commit fd1aa12c authored by Al Viro's avatar Al Viro Committed by Greg Kroah-Hartman

constify iov_iter_count() and iter_is_iovec()

commit b57332b4 upstream.

[stable note, need this to prevent build warning in commit
a0ac402c]
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 899b6053
...@@ -101,12 +101,12 @@ int iov_iter_npages(const struct iov_iter *i, int maxpages); ...@@ -101,12 +101,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)); return !(i->type & (ITER_BVEC | ITER_KVEC));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment