summaryrefslogtreecommitdiffstats
path: root/fs/orangefs/orangefs-bufmap.c
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2015-12-15 14:45:12 -0500
committerMike Marshall <hubcap@omnibond.com>2015-12-17 14:34:17 -0500
commitbf89f584329c79909ea01c99aeac59ec20b3f524 (patch)
treecf247cf0078850b5ca5565f18e9d71edd0698721 /fs/orangefs/orangefs-bufmap.c
parenta762ae6dc5a615f18b5f0fe54a0b8551e02e19d0 (diff)
downloadlinux-bf89f584329c79909ea01c99aeac59ec20b3f524.tar.bz2
orangefs: Change visibility of several bufmap helpers to static.
Signed-off-by: Mike Marshall <hubcap@omnibond.com> Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-bufmap.c')
-rw-r--r--fs/orangefs/orangefs-bufmap.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/orangefs/orangefs-bufmap.c b/fs/orangefs/orangefs-bufmap.c
index 863c6fc8e192..bf8470060c74 100644
--- a/fs/orangefs/orangefs-bufmap.c
+++ b/fs/orangefs/orangefs-bufmap.c
@@ -9,6 +9,14 @@
DECLARE_WAIT_QUEUE_HEAD(orangefs_bufmap_init_waitq);
+/* used to describe mapped buffers */
+struct orangefs_bufmap_desc {
+ void *uaddr; /* user space address pointer */
+ struct page **page_array; /* array of mapped pages */
+ int array_count; /* size of above arrays */
+ struct list_head list_link;
+};
+
static struct orangefs_bufmap {
atomic_t refcnt;
@@ -50,7 +58,7 @@ orangefs_bufmap_free(struct orangefs_bufmap *bufmap)
kfree(bufmap);
}
-struct orangefs_bufmap *orangefs_bufmap_ref(void)
+static struct orangefs_bufmap *orangefs_bufmap_ref(void)
{
struct orangefs_bufmap *bufmap = NULL;
@@ -63,7 +71,7 @@ struct orangefs_bufmap *orangefs_bufmap_ref(void)
return bufmap;
}
-void orangefs_bufmap_unref(struct orangefs_bufmap *bufmap)
+static void orangefs_bufmap_unref(struct orangefs_bufmap *bufmap)
{
if (atomic_dec_and_lock(&bufmap->refcnt, &orangefs_bufmap_lock)) {
__orangefs_bufmap = NULL;