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

Konstantin Khorenko khorenko at virtuozzo.com
Wed Jan 11 02:44:03 PST 2017


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 at 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.
    
    https://jira.sw.ru/browse/PSBM-54817
    
    Signed-off-by: Dmitry Monakhov <dmonakhov at openvz.org>
---
 include/linux/fs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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)
 {
 	BUG_ON(!iov_iter_has_iovec(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;
 }


More information about the Devel mailing list