summaryrefslogtreecommitdiffstats
path: root/fs/orangefs/orangefs-bufmap.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-02-12 03:34:52 +0100
committerMike Marshall <hubcap@omnibond.com>2016-02-12 21:05:33 +0100
commit1357d06d49d1f87af48ab768d34af55bff18b0c3 (patch)
tree18b208b4117819d48d4a16f7b05bd10b94cfd407 /fs/orangefs/orangefs-bufmap.c
parentorangefs: get rid of handle_io_error() (diff)
downloadlinux-1357d06d49d1f87af48ab768d34af55bff18b0c3.tar.xz
linux-1357d06d49d1f87af48ab768d34af55bff18b0c3.zip
get rid of bufmap argument of orangefs_bufmap_put()
it's always equal to __orangefs_bufmap and the latter can't change until we are done 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/orangefs/orangefs-bufmap.c b/fs/orangefs/orangefs-bufmap.c
index c60019de1fd8..1819dee58433 100644
--- a/fs/orangefs/orangefs-bufmap.c
+++ b/fs/orangefs/orangefs-bufmap.c
@@ -458,9 +458,10 @@ int orangefs_bufmap_get(struct orangefs_bufmap **mapp, int *buffer_index)
*
* no return value
*/
-void orangefs_bufmap_put(struct orangefs_bufmap *bufmap, int buffer_index)
+void orangefs_bufmap_put(int buffer_index)
{
struct slot_args slargs;
+ struct orangefs_bufmap *bufmap = __orangefs_bufmap;
slargs.slot_count = bufmap->desc_count;
slargs.slot_array = bufmap->buffer_index_array;