diff options
author | Maxim Patlasov <mpatlasov@parallels.com> | 2012-10-26 11:50:04 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2013-01-24 10:21:27 -0500 |
commit | d28574e043e8b7cb35482de6e9a553118a32803d (patch) | |
tree | 6233897744a2d5de8ff98e51e4f12dad933355b0 /mm/filemap.c | |
parent | 85f40aec887110ae6bbefa87988def4606a3d583 (diff) |
mm: minor cleanup of iov_iter_single_seg_count()
The function does not modify iov_iter which 'i' points to.
Signed-off-by: Maxim Patlasov <mpatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 83efee76a5c0..24a7ea583f0c 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -2056,7 +2056,7 @@ EXPORT_SYMBOL(iov_iter_fault_in_readable); | |||
2056 | /* | 2056 | /* |
2057 | * Return the count of just the current iov_iter segment. | 2057 | * Return the count of just the current iov_iter segment. |
2058 | */ | 2058 | */ |
2059 | size_t iov_iter_single_seg_count(struct iov_iter *i) | 2059 | size_t iov_iter_single_seg_count(const struct iov_iter *i) |
2060 | { | 2060 | { |
2061 | const struct iovec *iov = i->iov; | 2061 | const struct iovec *iov = i->iov; |
2062 | if (i->nr_segs == 1) | 2062 | if (i->nr_segs == 1) |