diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-02-17 02:06:19 +0100 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-03-26 03:30:54 +0100 |
commit | bf6bf606e545cb31c29499b354c13b2621acd649 (patch) | |
tree | 237329d42ac5e126d273a31606f9258b04155348 /fs/orangefs/orangefs-bufmap.c | |
parent | orangefs: get rid of readdir_handle_s (diff) | |
download | linux-bf6bf606e545cb31c29499b354c13b2621acd649.tar.xz linux-bf6bf606e545cb31c29499b354c13b2621acd649.zip |
orangefs_copy_{to,from}_bufmap(): don't pass bufmap pointer
it's always __orangefs_bufmap
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-bufmap.c')
-rw-r--r-- | fs/orangefs/orangefs-bufmap.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/orangefs/orangefs-bufmap.c b/fs/orangefs/orangefs-bufmap.c index 44d437dbfce0..97689c6cab17 100644 --- a/fs/orangefs/orangefs-bufmap.c +++ b/fs/orangefs/orangefs-bufmap.c @@ -511,19 +511,18 @@ void orangefs_readdir_index_put(int buffer_index) * we've been handed an iovec, we need to copy it to * the shared memory descriptor at "buffer_index". */ -int orangefs_bufmap_copy_from_iovec(struct orangefs_bufmap *bufmap, - struct iov_iter *iter, +int orangefs_bufmap_copy_from_iovec(struct iov_iter *iter, int buffer_index, size_t size) { - struct orangefs_bufmap_desc *to = &bufmap->desc_array[buffer_index]; + struct orangefs_bufmap_desc *to; int i; gossip_debug(GOSSIP_BUFMAP_DEBUG, "%s: buffer_index:%d: size:%zu:\n", __func__, buffer_index, size); - + to = &__orangefs_bufmap->desc_array[buffer_index]; for (i = 0; size; i++) { struct page *page = to->page_array[i]; size_t n = size; @@ -542,14 +541,14 @@ int orangefs_bufmap_copy_from_iovec(struct orangefs_bufmap *bufmap, * we've been handed an iovec, we need to fill it from * the shared memory descriptor at "buffer_index". */ -int orangefs_bufmap_copy_to_iovec(struct orangefs_bufmap *bufmap, - struct iov_iter *iter, +int orangefs_bufmap_copy_to_iovec(struct iov_iter *iter, int buffer_index, size_t size) { - struct orangefs_bufmap_desc *from = &bufmap->desc_array[buffer_index]; + struct orangefs_bufmap_desc *from; int i; + from = &__orangefs_bufmap->desc_array[buffer_index]; gossip_debug(GOSSIP_BUFMAP_DEBUG, "%s: buffer_index:%d: size:%zu:\n", __func__, buffer_index, size); |