* a new shared memory location.
*/
if (ret == -EAGAIN && op_state_purged(new_op)) {
- orangefs_bufmap_put(bufmap, buffer_index);
+ orangefs_bufmap_put(buffer_index);
buffer_index = -1;
if (type == ORANGEFS_IO_WRITE)
*iter = saved;
} else {
complete(&new_op->done);
}
- orangefs_bufmap_put(bufmap, buffer_index);
+ orangefs_bufmap_put(buffer_index);
buffer_index = -1;
/*
* don't write an error to syslog on signaled operation
out:
if (buffer_index >= 0) {
- orangefs_bufmap_put(bufmap, buffer_index);
+ orangefs_bufmap_put(buffer_index);
gossip_debug(GOSSIP_FILE_DEBUG,
"%s(%pU): PUT buffer_index %d\n",
__func__, handle, 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;
int orangefs_bufmap_get(struct orangefs_bufmap **mapp, int *buffer_index);
-void orangefs_bufmap_put(struct orangefs_bufmap *bufmap, int buffer_index);
+void orangefs_bufmap_put(int buffer_index);
int orangefs_readdir_index_get(struct orangefs_bufmap **mapp, int *buffer_index);