[Devel,RHEL7,COMMIT] fs: constify iov_iter_count/iov_iter_iovec helpers

Submitted by Konstantin Khorenko on Jan. 11, 2017, 10:44 a.m.


Message ID 201701111044.v0BAi3e7003490@finist_cl7.x64_64.work.ct
State New
Series "Series without cover letter"
Headers show

Commit Message

Konstantin Khorenko Jan. 11, 2017, 10:44 a.m.
The commit is pushed to "branch-rh7-3.10.0-514.vz7.27.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-514.vz7.27.8
commit 31eb8052e9a1198abc40891d8aea3840e6004b93
Author: Dmitry Monakhov <dmonakhov@openvz.org>
Date:   Wed Jan 11 14:44:03 2017 +0400

    fs: constify iov_iter_count/iov_iter_iovec helpers
    This is done in the scope of fixing CEPH compilation after rebase to RHEL7.3.
    Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
 include/linux/fs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/include/linux/fs.h b/include/linux/fs.h
index e30e8a1..a27bd15 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -448,13 +448,13 @@  static inline int iov_iter_has_iovec(const struct iov_iter *i)
 	return i->ops == &ii_iovec_ops;
-static inline struct iovec *iov_iter_iovec(struct iov_iter *i)
+static inline struct iovec *iov_iter_iovec(const struct iov_iter *i)
 	return (struct iovec *)i->data;
-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;