Merge tag 'afs-fixes-20171201' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowe...
[linux/fpc-iii.git] / fs / orangefs / orangefs-bufmap.h
blobc2c3c5a0eeab41e625633d462c257ccd571193a0
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * (C) 2001 Clemson University and The University of Chicago
5 * See COPYING in top-level directory.
6 */
8 #ifndef __ORANGEFS_BUFMAP_H
9 #define __ORANGEFS_BUFMAP_H
11 int orangefs_bufmap_size_query(void);
13 int orangefs_bufmap_shift_query(void);
15 int orangefs_bufmap_initialize(struct ORANGEFS_dev_map_desc *user_desc);
17 void orangefs_bufmap_finalize(void);
19 void orangefs_bufmap_run_down(void);
21 int orangefs_bufmap_get(void);
23 void orangefs_bufmap_put(int buffer_index);
25 int orangefs_readdir_index_get(void);
27 void orangefs_readdir_index_put(int buffer_index);
29 int orangefs_bufmap_copy_from_iovec(struct iov_iter *iter,
30 int buffer_index,
31 size_t size);
33 int orangefs_bufmap_copy_to_iovec(struct iov_iter *iter,
34 int buffer_index,
35 size_t size);
37 #endif /* __ORANGEFS_BUFMAP_H */